retaining tab index
-
Hi, I have a few controls in my page. I have two drop downlist controls in which the second one is populated when a value is selcted in the first dropdownlist . During this post back the tab index is lost .The tab is going to the first control. Can some one help me with this so that i can get the tab index to the next one, Thank you, hepsi
-
Hi, I have a few controls in my page. I have two drop downlist controls in which the second one is populated when a value is selcted in the first dropdownlist . During this post back the tab index is lost .The tab is going to the first control. Can some one help me with this so that i can get the tab index to the next one, Thank you, hepsi
You could use AJAX to get the values, and set the selected box using javascript. Or, you could set the selected item in the selected index changed event handler.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
You could use AJAX to get the values, and set the selected box using javascript. Or, you could set the selected item in the selected index changed event handler.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
hepsy.i wrote:
I want to retain the tab index ov post back . I'm not using ajax...
Set
MaintainScrollPositionOnPostback="true"
if you are using ASP.NET 2.0.
-
hepsy.i wrote:
I want to retain the tab index ov post back . I'm not using ajax...
Set
MaintainScrollPositionOnPostback="true"
if you are using ASP.NET 2.0.
-
Thank you, i'm not using 2.0, i'm using 1.0. i dont want the scroll bar postion... i need the tab index to go to the next dropdownlist but its going to the first control. Thank you hepsi
To reiterate my answer - if you don't want to use AJAX ( and it would be nice if you did ), then you should set the selected item in your code behind, in the event handler for the first drop down list changing, the one that fills the second drop down list. If there's no property on the server side, you could certainly inject client side code that runs when the page has loaded.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Thank you, i'm not using 2.0, i'm using 1.0. i dont want the scroll bar postion... i need the tab index to go to the next dropdownlist but its going to the first control. Thank you hepsi