<asp:TextBox ID="txtName" runat="server" placeholder="Name" required="a" title="Enter the Name" pattern="[a-zA-Z]+"></asp:TextBox>
when submit the textbox as empty validation Required
Title is for small alert Message for the user.
Placeholder is the small Description of the Input which is needed .
Required is the Required Field Validation
Pattern Checking for input
No comments:
Post a Comment