Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set the TabIndex of a control added to a placeholder
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00711457
Message ID:
00711644
Views:
7
Cathi,

Good response - I gave you points (I think I owe you a bunch more too).

However, as I should have pointed out, the control I am adding is an HTMLTextArea - so TabIndex does not come up in Intellisense and generates a compile error.

Any work arounds?

Thanks for your help,
Doug
>Web Controls have a TabIndex property that you can set for the order you want to display the items. After you dynamically add the new control, you can set it's TabIndex to be in the order you want. Here is a sample in the page's load method:
>
>
>Dim TextBox4 As New TextBox()
>PlaceHolder1.Controls.Add(TextBox4)
>textbox4.TabIndex = 2
>
>
>>All,
>>
>>I have a webform where I dynamically add controls to a placeholder.
>>
>>All of the static entries on my form have TabIndex values, so when I add controls to the placeholder and then tab through the fields on the web form the controls within the placeholder are the last to be accessed, even though they render in the middle of the page. How can I set the TabIndex value of each control I add to the PlaceHolder?
>>
>>".NET - Making the easy things hard."
>>TIA,
>>Doug
Douglas Osborne
Don't spend your life just wishing - http://www.AllGiftRegistry.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform