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

how many select state ments are used in stored procedure?

8 Answers   CSC,


How to find the client browser type ?

4 Answers   AQA, Cognizant, Satyam,


accessing a textbox that was created dynamically? for (int i = 0; i < t1; i++) { TextBox t2 = new TextBox(); t2.ID = "adf" + i; PlaceHolder1.Controls.Add(t2); } accessing data entered in the above created controls.

1 Answers  


Is viewstate enabled by default?

0 Answers  


Please brief not about xsd,xslt & xml?

0 Answers  






What are the differences between the response.write() and response.output.write()?

0 Answers  


What is a Windows Service and how does its lifecycle differ from a "standard" EXE?

2 Answers  


What does postback mean?

0 Answers  


What is preprocessor in .net and type, where it use?

0 Answers  


What are early binding and late binding.

0 Answers  


Hey I am using asp.net mvc architecture. I creating one dropdownlist using <select id="State" name="State"></select> this is dynamic list.Its displaying properly. But in time of Edit.If i load a page dropdownlist is not displaying the item which is stored in table.

1 Answers  


What is cas?

0 Answers  


Categories