Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 286
  • Last Modified:

How to validate Min and Max number of character in ASP.NET

Hi.
  I have a text box where i need to validate the min and max number of numeric characters in asp.net. Example : i need to validate min number of  Characters to be entered is 1 and Max number of characters to be entered is 6 how to validate this using regularexpression valdation or any valdation control to valid this.

 Suggest me how to proceed with this or give me some sample example which would help to proceed

Thanx
0
mohan21_kumar
Asked:
mohan21_kumar
1 Solution
 
computerg33kCommented:
dim i as integer
if textbox.value>=7 then
if textbox.value<1
'error code
end if
end if
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now