Explain how the server control validation controls works, DOT NET Programming

Assignment Help:

Briefly explain how the server control validation controls work?

A validation control works by evaluating the value of an input server control on the page to see whether it meets certain criteria. The input control to evaluate is specified by the validation controls Control To Validate attribute. You can programmatically cause a validation control to perform its evaluation by calling its Validate method, which sets the validation controlls IsValid property to true if validation succeeds and false if it fails. You can cause all of the validation controls on a page to validate their input controls by calling the Page.Validate method. 

 The Page Is Valid property is set to true if validation succeeds for all validation controls within the page; or else, it's false. The Page.Validate method is automatically invoked when a button control whose CausesValidation property is set to true is clicked. Causes Validation is set to false by default for a reset or clear button. The button click event is suppressed if IsValid is false for any validation control on the page. There are following types of validation controls given by ASP.Net:

1. Required Field Validator

2. Compare Validator

3. Range Validator

4. Regular Expression Validator

5. Custom Validator

These controls are server side controls. Though in up-level browsers that is IE 4.0 and above these can be enabled on client side also.

All these controls have a property called Control to Validate. Required Field Validator ensures data entry into the Control to Validate.

 


Related Discussions:- Explain how the server control validation controls works

Events in dot net pogramming, What are events? As compared to the deleg...

What are events? As compared to the delegates events works with source and listener methodology. So the listeners who are interested in receiving few events they subscribe to t

Major events in global.asax file, What are major events in GLOBAL.ASAX file...

What are major events in GLOBAL.ASAX file? The Global.asax file, which is derived from the HttpApplication class, maintains a pool of the HttpApplication objects, & assigns the

What is reflection, Reflection All .NET assemblies have metadata inform...

Reflection All .NET assemblies have metadata information stored  the types defined in the modules. And This metadata information can be accessed by mechanism called as "Reflect

Illustrate the basic process in an asp.net architecture, Problem: (a) ...

Problem: (a) (i) Using a diagram, illustrate the basic process in an ASP.NET Architecture involving at least five objects. (ii) List two methods and two collections

Indexes, What are indexes? The Indexes in the SQL Server are similar to...

What are indexes? The Indexes in the SQL Server are similar to the indexes in books. They help SQL Server to retrieve the data quickly.These are classified into clustered and n

Live projects, current available topics on computer graphics

current available topics on computer graphics

What is asp.net authentication providers and iis security, What is ASP.NET ...

What is ASP.NET Authentication Providers and IIS Security? ASP.NET executes authentication using authentication providers, which are code modules that determine credentials and

I need web based inventory management system, I need Web Based Inventory Ma...

I need Web Based Inventory Management System Project Description: I require a build in software which has the subsequent features, if anybody has ready to use web based appli

Jquery and mvc 4.5 training session, I am looking individuals who have indu...

I am looking individuals who have industry experience working on Microsoft Technology and Jquery ( MVC 4.5 ), who will take live online session and give training through Team Viewe

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd