.net - Text box validation to enter value only more than zero -
I need an ASP.NET text box verification which is above zero;
Not less than zero or zero
You can compare these terms with a comparison valetator Can set.
If you do not want to leave it empty, then add a requiredFidelWidator.
ASPX looks like this:
& lt; Asp: text box id = "textbox1" runat = "server" & gt; & Lt; / Asp: text box & gt; & Lt; ASP: ComparisonValidator ID = "Comparison Viadetator 1" Runat = "Server" ControlTowlid = "Textbox 1" error message = "should be and; 0" operator = "greaterthan" type = "integer" value = "0" />
Comments
Post a Comment