Click here to Skip to main content
15,904,024 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good morning.

I am trying to set the focus on dropdown listbox on modal popup. I am using the following:
ddReasonEnrolling.Focus();
without success.

I did some research and found some JScript examples, but I didn't have any luck implementing those either. I thought this would be a pretty simple matter. I am new to web programming, but come from a Windows development background.

Any suggestions? Thank you, WHEELS
Posted

Serverside you can set the SelectedIndex property of the ListBox.

Take a look at this: http://forums.asp.net/t/1343140.aspx[^] for one possible client side solution

regards
Espen Harlinn
 
Share this answer
 
I set the SelectedIndex to 0 and then -1, without success.
 
Share this answer
 

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