What are the Validation Controls in ASP.NET ? Which two properties are on every Validation Control ?
Validation Controls
Hi
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted May 15, 2012, 6:09 PM EDT
The two properties which are common in every Validation Control are as below
1. Control to Validate
2. Error Message
Please refer the below links
http://www.w3schools.com/aspnet/aspnet_refvalidationcontrols.asp
http://www.codeproject.com/Articles/7943/Validator-Controls-in-ASP-NET
http://www.c-sharpcorner.com/uploadfile/puranindia/validation-controls-in-Asp-Net/
Thanks
SenthilkumarRank #387 · 6.5K reputationPosted May 15, 2012, 7:45 PM EDT
The validation controls are used to validate the state of ASP.Net controls like textbox,etc.,
It has the different types of control to validate the required field, range, date validation, comparision,etc..
The Text and ControlToValidate is the two property has all the validation controls.
The Text will contain the error or warning message.
The ControlToValidate will associate the validation control with to be validated control.
Jignesh TrivediRank #16 · 50.3K reputationPosted May 15, 2012, 7:46 PM EDT
This set of controls provide Rapid Application Development (RAD) features for automatically checking the specified validity of user inputs. These controls are available in the System.Web.UI.WebControls namespace.
RequiredFieldValidator
RegularExpressionValidator
CompareValidator
RangeValidator
CustomValidator
ValidationSummary
please refer..
http://msdn.microsoft.com/en-us/library/bwd43d0x.aspx
hope this help.