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


Please Help Members By Posting Answers For Below Questions

How many types of sessions are there in asp net?

516


What are merge modules?

548


How do we ensure view state has not tampered?

600


What is the difference between application state and caching?

536


a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.

1432






How does session id work?

482


How many types of state management are there in asp net?

513


Explain the Session state management options available with ASP.NET?

560


What are the types of session in asp.net?

518


What does aspcompat="true" mean?

542


What is the difference between login controls and forms authentication?

536


What is difference between Lambda Expression and LINQ in ASP.NET?

536


What is the file through which you can customize your asp.net application?

537


Can master pages be nested?

506


Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?

531