asp.net dropdown control

  • Thread starter Thread starter venky
  • Start date Start date
V

venky

hi,

i have <asp:dropdownlist> control in my form. I want to write a client
side script when the selected index changed. any code or ideas how to
do it?


venky
 
you should be able to add an .Attribute with an onClick in it, to call the
clientside function
 
Venky:
I think what Curt meant was to add an OnChange attribute, not onclick as per
your request; such as:
myDropDown.Attributes.Add("OnChange", "myClientSideFunction")

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top