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

Why will you usually create an aspnet user account in the database for an asp.net web application?

541


Explain Authentication mechanism in dotnet

633


What is data cache in sql server?

597


Explain the difference between Repeater and Data list control in ASP.NET?

625


To display data in a Repeater control which template you provide?

598






What are the two properties that are common on every validation control?

561


What are the features that make asp.net more used framework? : asp.net mvc

552


Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?

1723


What is the full meaning of asp.net?

528


What is mvc in asp.net tutorial? : Asp.Net MVC

549


Can you use Web API with ASP.NET Web Form?

701


What is http post action?

556


How use Xml data in ASP.net?

565


Explain in what order a destructors is called.

586


Why we are using mvc instead of asp.net? : Asp.Net MVC

527