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
How to retrieve user name in case of Window Authentication?
What is the concepts of globalization and localization in .net?
Please briefly explain the usage of global.asax?
Why web api is better than wcf?
What are the main differences between asp and asp.net?
How to improve performance of web application asp.net mvc? : Asp.Net MVC
How do I force the dispose method to be called automatically, as clients can forget to call dispose method?
Is asp.net and .net are same or different?
What is the biggest disadvantage of “Other Return Types” in Web API?
What is a page life cycle?
Is viewstate secure?
where can i gather the materials for MCP certification
How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?
What is difference between view and partial view?
What is application session?