Wednesday, 1 March 2017

HTML5 Validation For Password Minimum Length In Asp.Net

3/01/2017 - By Pranav Singh 0

This article will show you how can use html5 validation for password minimum length in asp.net. In this we will define min length of the password which user have to enter.

So for this first we will create a new asp.net application and add the below code into the page.

  <div>
                Password:
            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" required minlength="6"></asp:TextBox>
                <asp:Button ID="Button1" runat="server" Text="Submit" />
            </div>

In above code please check the bold and highlighted part of the code. In this I have added required and minlength. In this required will force user to enter some value and minlength force user to insert min 6 character. Without this user will not be able to submit the form.

Now we have done lets check the output.



About the Author

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post

0 comments:

Please let me know your view

Free Ebooks


About Us

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Contact Us

For writing article in this website please send request by your

GMAIL ID: dotnetpools@gmail.com

Bugs and Suggestions

As we all know that this website is for sharing knowledge and providing proper solution. So while reading the article is you find any bug or if you have any suggestion please mail us at contact@aspdotnet-pools.com.

Partners


Global Classified : Connectseekers.com
© 2014 aspdotnet-pools.com Designed by Bloggertheme9.
back to top