Click here to Skip to main content
16,017,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do you implement validation code on a Control such like textbox
Posted

Either read the TextBox.Validating or TextBox.Validated sections on MSDN (I'm pretty sure that there are examples there), or search for those terms on the web, where you will find articles like this[^] one.
 
Share this answer
 
v2
Hi,

you can implement the validations to controls in two ways.
1.Client Side
2.Server Side.

For client side,you can go for javascript or use validation controls which are provided Microsoft.

For Serverside,you can put validation in button click event

For reference,follow the links.
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/validation/default.aspx[^]

http://www.dotnetcurry.com/ShowArticle.aspx?ID=121&AspxAutoDetectCookieSupport=1[^]
Regards,
Kiran.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900