C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Validation


Posted Date: 29 Jul 2008      Total Responses: 2

Posted By: sudhakarnaidu       Member Level: Bronze     Points: 1



Iam trying to use range validaor for a text box for which user has to enter phone nunber. Max vaue 9999999999 Min value 1000000000. Type = string and also tried with int.The error was not displaying.Any one plz solve my prblm.




Responses

Author: Srinivas     29 Jul 2008Member Level: GoldRating:     Points: 3

Hi Sudhakar

use this
<asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TextBox1" MaximumValue="99999999999"
MinimumValue="1000000000" Type="String"
ErrorMessage="enter between 1000000000 and 99999999999"></asp:RangeValidator>



Author: Bindu Bujji    30 Jul 2008Member Level: GoldRating:     Points: 4

<asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TextBox1" MaximumValue="99999999999"
MinimumValue="1000000000" Type="String"
ErrorMessage="enter between 1000000000 and 99999999999"></asp:RangeValidator>

Hope this helps
Bindu



Post Reply
You must Sign In to post a response.
Next : Grid view row command
Previous : dynamic declaration
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use