Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 11th, 2007, 07:59 AM
Authorized User
Join Date: Oct 2003
Location: , , .
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Default RegularExpressionValidator


 I have a textbox where user can enter date. Currently the date can only be in the format dd/MM/yyyy. I need to modify the RegularExpressionValidator to allow user to also enter date in the format for example 11 Oct 2007 as well as dd/MM/yyyy.

How can i do that?


<asp:RegularExpressionValidator ID="REVARegDateEdit" runat="server" ControlToValidate="Registration_dateTextBox"

Display="Dynamic" ErrorMessage="DD/MM/YY" Style="z-index: 127; left: 573px; position: absolute;
top: 47px" ValidationExpression="^\d{1,2}/\d{1,2}/\d{2}$" Width="90px"></asp:RegularExpressionValidator>

Similar Threads
Thread Thread Starter Forum Replies Last Post
RegularExpressionvalidator belete ASP.NET 1.0 and 1.1 Professional 2 October 20th, 2007 01:44 PM
RegularExpressionValidator somnath.kartic ASP.NET 1.0 and 1.1 Basics 4 April 3rd, 2006 09:01 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.