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 is the purpose of master page?
What is a gridview in asp.net?
Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
How do I use a proxy server when invoking a web service?
What is query string in asp.net?
explain code with datachaching with example
What permissions do asp.net applications posses by default?
What is the syntax for datagrid and specifying columns?
Differentiate between file-based dependency and key-based dependency.
What is difference in .net 1.1 and .net 2.0?
What is runat?
What language does asp.net use?
What is server transfer?
What is the difference between stored procedure vs function?
Why session is used in asp.net?