Hari Krishna

Hari Krishna

  • 1.5k
  • 129
  • 45.8k

buton onclientclick is not firing after refresh form

Dec 28 2017 9:39 AM
Hi team,
I am using asp.net using c#.net webapplication,
in this my button is <asp:Button ID="btnCompare" runat="server" Text="Compare" Width="102px" CssClass="standard-button-new vertical-common-button Cssbtn"
OnClick="btnCompare_Click" />

for validations,i am using $("#ContentPlaceHolder1_btnCompare").click(function () {
return true;
});
above onclientclick then click code server side event is working first time,
then i am using reset button for my screen,
in this reset i just done reset my control values to empty,
now i again ,i am entering some negative text in text box i clicked my button, now
after reset button,my button onclientclick is not firing pls,
its working directly server side event,
can any one tell me pls, why my javascript onclientclick is not firing after reset button working

Answers (1)