Link to home
Start Free TrialLog in
Avatar of mazin_kf
mazin_kf

asked on

I am using ASP.Net button control , how can I associate a javaScript function beside a C# method in the OnClick event?

I am using ASP.Net button control , how can I associate a javaScript function beside a C# method in the OnClick event?
e.g.
<asp:Button ID="Button1" runat="server" Text="do"  OnClick="Button1_Click" />
How can I add javaScript function to the OnClick event?
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Duh! I didn't think to ask if he was using ASP.NET 2.0, but that version does include an OnClientClick attribute already.  I use 1.1, so assumed he used the same.  Sorry.

    -dZ.
I guess answer is already given for this question. The author should revert back. so Ball is with Admin now.
Forced accept.

Computer101
EE Admin