Ram
Ram

Reputation: 933

Handle the dropdownlist selectedindexchanged event in javascript

Hi all How to handle the dropdownlist selectedindexchanged event in javascript of asp.net. I'm able to handle it in codebehind but every time page_loag event is firing.

Upvotes: 0

Views: 7381

Answers (2)

Muhammad Akhtar
Muhammad Akhtar

Reputation: 52241

If you want to handle this in JavaScript..

  <asp:DropDownList runat="server" ID="ddlID" onchange="JavaScript:JSFuntionName();">
    </asp:DropDownList>

Upvotes: 4

Samir Adel
Samir Adel

Reputation: 2499

Remove the autopostback property from the dropdownliat and use the onchange attribute to fire a javascript function.

Upvotes: 1

Related Questions