Javascript in ASP.NET

Ronak

Member
Joined
Jan 13, 2006
Messages
11
Programming Experience
1-3
Hello,

How can I use javascript in OnSelectedIndexChanged Event..

I tried lots but it gives me error

Thanks
 
i belive that you are talking about dropdownlist. just set client onChange event like:

VB.NET:
<asp:DropDownList id="YourList" runat="Server" onChange="MyJavaFunction();" />

just put function in head of the page.
 
Hello,

But there is no attribute named on 'onChange'. 'OnSelectedIndexChanged' is there.

What to do?

Thanks for repley....
 
Back
Top