SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast mrsaif's Avatar
    Join Date
    Jun 2005
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation how to add client side oncheckedchanged on asp:dropdownlist sever Controle

    I want to add clinet side javascript on the asp:dropdownlist's onchecked changed event how i do this does any one have any idea.
    i use the following method in vb.net code behind file

    dropdownlist1.Attribuets.add("onCheckedChanged","javascript:aa()")

    and see that when i change the option in the list the javascript method aa not fired.
    can any one help me??????????

  2. #2
    SitePoint Member
    Join Date
    Jun 2005
    Location
    videira, santa catarina, brazil
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey dude,
    you are doing right, just one little thing wrong, whit this code:

    dropdownlist1.Attribuets.add("oncheckedchanged","aa()")

    its supose to work out, dont forget to include inside the Page_Load sub.
    any problem just ask, i had the same problem and i solved it here.

    see ya


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •