What are two ways that you can set the minimum and maximum
values for a rangevalidator? When would you use each technique?
Answer Posted / 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 View All Answers
What are custom user controls in asp.net?
What is web api config?
Explain the various authentication mechanisms in asp.net.
Which is better session or viewstate?
How do I open an ashx file in windows 7?
What is the difference between a candidate key and primary key?
What is the advantage of mvc over asp.net? : Asp.Net MVC
How to use a Master Database in Asp.net?
What is difference between ispostback and autopostback in asp net?
Why viewstate is used in asp.net?
Explain the Session state management options available with ASP.NET?
What are session cookies?
What is the difference between rest and restful?
What are uri parameters?
How to sign out from forms authentication?