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:
00711544
Views:
7
This message has been marked as the solution to the initial question of the thread.
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
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform