C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






View Message



Sender kishore ch

Recipient(s) R.Jaya kumar (JK)

Date 14 Sep 2009


Re: I need Explain RegularExpressionValidator


Evaluates the value of an input control to determine whether it matches a pattern defined by a regular expression.

http://msdn.microsoft.com/en-us/library/eahwtc9e.aspx

>>> On 14 Sep 2009, R.Jaya kumar (JK) wrote:

asp:RegularExpressionValidator ID="revDate" runat="server" ErrorMessage="Invalid Date format / Please enter Date in correct format (mm/dd/yyyy) and Year should be later than 1900 and Earlier than 2099" ControlToValidate="txtDate" SetFocusOnError="true" ValidationExpression="^(((0?[1-9]|1[012])/(0?[1-9]|1\d|2[0-8])|(0?[13456789]|1[012])/(29|30)|(0?[13578]|1[02])/31)/(19|[2-9]\d)\d{2}|0?2/29/((19|[2-9]\d)(0[48]|[2468][048]|[13579][26])|(([2468][048]|[3579][26])00)))$" Display="None"asp:RegularExpressionValidator







dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use