Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design 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
 
Old July 27th, 2004, 12:28 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Default problem with ReExp

i have problem with RegExp when it is left balnk it is not get any error and give option to posback the form(submit) i am using this syntax of RexExp If Any one guide me what i must to change to avoiding this problem .
 
Quote:
quote:<asp:RegularExpressionValidator runat="server" ValidationExpression="^[\w-]+@[\w-]+\.(com|net|org|edu|mil|info|co|uk)$" ControlToValidate="from" ErrorMessage="áØÝÇ Çíãíá ÑÇ ÏÑÓÊ æÇÑÏ ßäíÏ"></asp:RegularExpressionValidator>

Thanx In Advance.
YoOrD.

__________________
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;YoOrD .
Beauty is not on the face
Beauty is on the heart
~~&lt;&lt;Ghibran Khalil&gt;&gt;~~
 
Old July 27th, 2004, 12:50 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

To validate blanks, I believe you have to use the RequiredFieldValidator to avoid that.

Brian
 
Old August 1st, 2004, 12:20 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

yoord When u put a validator it will only validate for entered data & not for empties! Thats why RequiredFieldValidator exist.

Happy to know u here too;)

Always:),
Hovik Melkomian.









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