469,627 Members | 1,270 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,627 developers. It's quick & easy.

How to maintain tab sequence when AutoPostBack is "True"?

I am an untrained volunteer seekeing help.

I have several input pages where I autopostback is marked "True", when I enter the data or select the entry. The page flashes a losses its normal tab sequence. How can I mainatin teh Tab Sequence (focus)?

Exmaples
Expand|Select|Wrap|Line Numbers
  1.  <asp:DropDownList id="DropDownListq1" runat="server"                       DataSourceID="SqlDataSource1" DataTextField="True-False" 
  2. DataValueField="True-False" AutoPostBack="True"  OnSelectedIndexChanged="DropDownListq1_SelectionChanged" ></asp:DropDownList>
or
Expand|Select|Wrap|Line Numbers
  1. <asp:TextBox                                    id="TextBoxPlayFname" runat="server" AutoPostBack="true"                                  OnTextChanged="TextBoxPlayFname_TextChanged" AutoCompleteType="Disabled" ></asp:TextBox>
Thank you for your help in advance.

Billie
Feb 3 '11 #1
1 2322
Frinavale
9,735 Expert Mod 8TB
Consider placing the content in the tabs into UpdatePanels. This will get rid of the flash and should maintain the proper tab selection upon refreshing.

Otherwise, you need to check the selected tab in the PageLoad event, then set the proper tab in the PagePreRender event.

There may be a way fro the tab control to remember it's selection. It's likely that you will have to ensure that the ViewState for the tab control is set to enabled.

-Frinny
Feb 7 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Bradley Plett | last post: by
4 posts views Thread by moondaddy | last post: by
13 posts views Thread by Water Cooler v2 | last post: by
7 posts views Thread by Abubakar | last post: by
reply views Thread by John Jenkins | last post: by
reply views Thread by John Jenkins | last post: by
9 posts views Thread by Jamey Bon | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.