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

Briefly describe the role of global.asax?

575


Explain the difference between or and orelse?

534


What is the difference between union and join?

563


What are the modes of updation in an updatepanel? What are triggers of an updatepanel?

504


Define the term Scavenging in Caching?

578






What are the types of session in asp.net?

525


Explain about solution explorer window?

615


What is a session http?

519


What is difference between Lambda Expression and LINQ in ASP.NET?

538


Why we go for mvc instead of asp.net? : Asp.Net MVC

487


What is user control in asp.net?

510


How do I publish my asp.net application to my isp's web server?

581


What is css in asp.net?

545


What is the application pool?

543


What is preprocessor in .net and type, where it use?

656