What are two ways that you can set the minimum and maximum
values for a rangevalidator? When would you use each technique?



What are two ways that you can set the minimum and maximum values for a rangevalidator? When would ..

Answer / answerme

One of the ways to set Minimum Value and maximum value can
be set by usin =g the propery MinimumValue and MaximumValue.
<asp:RangeValidator
ControlToValidate="tbox1"
MinimumValue="2005-01-01"
MaximumValue="2005-12-31"
Type="Date"
EnableClientScript="false"
Text="The date must be between 2005-01-01 and 2005-12-31!"
runat="server" />

Will check if the date falls between the range.

This can be used when the specific range is known

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

about view state and how validation controls will be executed on client and server

3 Answers   Wipro,


How many no of classes in .net

4 Answers  


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

0 Answers  


Explain how inline and code behind is used differently ?

1 Answers   Siebel,


What are the security types in ASP/ASP.NET? Different Authentication modes?

0 Answers  


How to check the end of the record in Datareader?

2 Answers   Cognizant,


What are the features that make asp.net more used framework? : asp.net mvc

0 Answers  


When web.config is called ?

4 Answers   Keane India Ltd,


What are the security types in asp.net?

0 Answers  


What is difference between asp.net and asp.net mvc? : Asp.Net MVC

0 Answers  


What is difference Between Authentication and authorization?

0 Answers   MCN Solutions,


Difference between ASP & ASP.NET Session State

1 Answers   Cognizant, Wipro,


Categories