Link to home
Start Free TrialLog in
Avatar of karthik80c
karthik80cFlag for United States of America

asked on

Asp.Net Button Error

Hi Experts ,


Hi am using asp.net button when i click the button i need to call js function first and if js returns true only then it has to call the backend code. But in my button both are called at same time

<asp:Button ID="Button2" runat="server" class="btn btn-default btn-xs"  Text="Delete" OnClientClick=" confirm();" OnClick="Button2_Click" />

Open in new window


Thanks in Advance Experts
ASKER CERTIFIED SOLUTION
Avatar of Mlanda T
Mlanda T
Flag of South Africa 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