Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi...

How can i set postback for a dropdownlist onfocus event..

could some one help me.

Thank you..!
Posted
Comments
Mahesh Bailwal 19-Nov-13 2:52am    
why you want to do that?
Tuduru Sai Krishna 19-Nov-13 3:31am    
initially i need to give readonly option to the user(i,e dropdown looks like a label).. onfocus event, i want to postback and add items to dropdownlist and give user to select the item..
Tuduru Sai Krishna 19-Nov-13 3:38am    
Thanks for your response Mr. Mahesh Bailwal.
Do you get my problem?

1 solution

On aspx page add the Event to DropDownList.
onfocus="__doPostBack('ddlDropDown','');"

Here ddlDropDown is the ID of DropDownList.
 
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