Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All, I have a usercontrol and i added it in the main page.
in main page there is a javascript function(disableDiv).when I click a dropdownlist in the usercontrol i want to call this javascript function(disableDiv) from the usercontrol. How to do that?
Posted
Comments
Sandeep Mewara 24-Oct-10 5:09am    
Not clear. What do you mean by: click of dropdownlist -> call JS from UC? what kind of work flow is it?

See this thread:

http://forums.asp.net/p/924814/1071021.aspx[^]

If you really need it on a click rather than on a change of selected item, just replace onchange with onclick
 
Share this answer
 
Just use the onclick event in place of onchange event.and on that event call a function.
 
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