i have a register form & in that form i have a 2 textboxes
for entering name&age.my doubt is that how can i provide
error message like "invalid entry" when user enter a
invalid name/age(eg:user enter name as #%%%##daff,and age
as 1000.)in that textboxes.I want code.

Answer Posted / saravanakumar

We can use RegularExpressionValidator to validate the textbox content.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is _dopostback in asp net?

604


Is razor a programming language?

599


What are the ways of preserving data on a Web Form in ASP.NET?

711


What is the parent class of all web server control?

629


Which library is used by the testers and developers to develop automated tests and create testing tools?

625






What is semantic gap?

723


Explain authorization levels in .net ?

690


What is asp.net? How is it different from asp?

631


What is AutoPostback?

691


What is session management in web application?

638


What is a session http?

604


What is active web page?

642


What are the advantages of Web API?

723


What is session handling in a webfarm, how it can work with its limits?

717


What is role-based security in asp.net?

604