Skip to content

TabIndex in Asp.net

Hardik Bhavsar

Hardik Bhavsar

Asked Sep 6, 2013, 4:56 AM EDT1 answer
Share
LinkedInX
how to set tabindex in using this type of control nd inside this control have 1 gridview. <att:Attachment ID="ucAttachments" runat="server" /> my coding is page asp.cs -.  Button button1 = ucAttachments.FindControl("btnAdd") as Button;
                
Code
                if (button1 != null)
                {
                    button1.TabIndex = 65;
                    
                } this work is proper but inside this button 1 gridview how to set tab or focus on textbox after this btnadd button.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Sunny  Sharma
    0
    try adding TabIndex +1 more than previous button on TextBox that you want next to move on pressing tab.
    Like if you have 65 on Button, add 66 to TextBox.
    0