Fire javascript from dropdownlist selectedindexchanged

Discussion in 'ASP .Net' started by blarfoc, Jun 17, 2005.

  1. blarfoc

    blarfoc Guest

    Hi, I want to use javascript (not postback = true) to be fired when I
    do a selected index changed from a drop down list.

    How do I do that?

    Thank you,
    blarfoc, Jun 17, 2005
    1. Advertisements

  2. blarfoc

    Kim Quigley Guest

    I didn't test this code, but this is basically what you need

    DropDownList1.Attributes.Add("onChange", "YourFunction()").
    Kim Quigley, Jun 17, 2005
    1. Advertisements

  3. blarfoc

    blarfoc Guest

    Thank you
    blarfoc, Jun 17, 2005
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.