.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

Which validation control is used to match values in two controls?

Posted By :Shashi Ray     Posted Date :December 07, 2009    Points :10   Category :.NET Framework 
Compare Validation control.

You can also find related Interview Question to Which validation control is used to match values in two controls?  below: 

How many types of validation controls are provided by ASP.NET ?

  
There are six main types of validation controls:-

RequiredFieldValidator: It checks whether the control have any value. It's used when you want the control should not be empty.

RangeValidator: It checks if the value in validated control is in that specific range.

CompareValidator: It checks that the value in controls should match the value in other control.

RegularExpressionValidator: When we want the control value should match with a specific regular expression.

CustomValidator: It is used to define UserDefined validation.

ValidationSummary: It displays summary of all current validation errors. (More...)

Name two properties common in every validation control?

  
ControlToValidate property and Text property are two properties that are common in every validation control. (More...)

Can you control concatenation of string values with null values?

  
Concatenation of string values with null values results either null value or string value.
We can control that by setting CONCAT_NULL_YIELDS_NULL on or off.
When it is set to ON, the concatenation will result null and when it is set to OFF, it will result the string.
Setting it ON,
SET CONCAT_NULL_YIELDS_NULL on;
print 'testing' + NULL; --results NULL and prints nothing

Setting it OFF,

SET CONCAT_NULL_YIELDS_NULL off;
print 'testing' + NULL; -- results testing and prints the same (More...)

Name two properties common in every validation control?

  
ControlToValidate property and Text property. (More...)

Name two properties common in every validation control?

  
ControlToValidate property and Text property. (More...)

How many types of validation controls are provided by ASP.NET ?

  
There are six main types of validation controls :-

RequiredFieldValidator
It checks whether the control have any value. It's used when you want the control should
not be empty.

RangeValidator
It checks if the value in validated control is in that specific range. Example
TxtCustomerCode should not be more than eight length.

CompareValidator
It checks that the value in controls should match some specific value. Example Textbox
TxtPie should be equal to 3.14.

RegularExpressionValidator
When we want the control value should match with a specific regular expression.

CustomValidator
It is used to define UserDefined validation.

ValidationSummary
It displays summary of all current validation errors.
Note:- It's rare that some one will ask step by step all the validation controls. Rather they
will ask for what type of validation which validator will be used. Example in one of the
interviews i was asked how you display summary of all errors in the validation
control...just uttered one word Validation summary. (More...)

How to check that all the validation control are valid
and proper ?

  
Use the Page.IsValid() property you can check whether all the validation are done.
(More...)

Name two properties common in every validation control.

  
ControlToValidate property and Text property. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend