Click here to Skip to main content
15,901,284 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i m working in asp.net4.0 project.i want select one dropdown list after proper selection and postback occure then control goes to next dropdown. instead of going other control.i m used Tabindex and ddlcountry.focus()
Posted
Updated 11-Jul-12 3:16am
v2

On selection change of first dropdownlist write:
C#
DropDownList2.Focus();
 
Share this answer
 
All you need to do is set TabIndex property for each of your controls ...
In your case, if tabIndex of your control is '5' then set the tabIndex property of the next control you want to move to '6'..

If you want to set focus then you can do it using
C#
protected void ListBox1_TextChanged(object sender, EventArgs e)
    {
        ListBox2.Focus();
    }
 
Share this answer
 
v2
Comments
pradeep040186 11-Jul-12 8:35am    
i have written tabindex also for all control then also its not working in ideal mode
pradeep040186 11-Jul-12 8:37am    
sorry but i did both thing in my apps

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900