Reputation: 933
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
Reputation: 52241
If you want to handle this in JavaScript..
<asp:DropDownList runat="server" ID="ddlID" onchange="JavaScript:JSFuntionName();">
</asp:DropDownList>
Upvotes: 4
Reputation: 2499
Remove the autopostback property from the dropdownliat and use the onchange attribute to fire a javascript function.
Upvotes: 1