How can we restrict users to allow limited number of characters in the text box?

 Posted by vishalneeraj-24503 on 3/11/2014 | Category: ASP.NET Interview questions | Views: 1512 | Points: 40
Answer:

We can have MaxLength property of TextBox which is used for allowing no. of characters in the Textbox.

For Example:-
<asp:TextBox ID="txt_PAN_number" runat="server" MaxLength="10"></asp:TextBox>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response