button onclientclick is not working after reset button

Posted by Plhkrishna under ASP.NET Core on 12/28/2017 | Points: 10 | Views : 493 | Status : [Member] | Replies : 0
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

.net developer


Responses

(No response found.)

Login to post response