I’ve a JavaScript function to check the value entered by the user and it should not be more than the value which comes from database. I have code like this:
<asp:TextBox ID="txtNoDays" runat="server" Width="49px" onblur="return NumericChk(this,'<%=v_days%>')"></asp:TextBox>
I suggest you to use ASP.NET
RangeValidatororCompareValidatorcontrol.Try this,
Markup
Add the “onblur” attribute via code-behind.