Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 April 3rd, 2006, 04:18 AM
Authorized User
 
Join Date: Jan 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default RegularExpressionValidator

My problem is that when I use a RegularExpressionValidator(Internet E-mail Address) on a page it works fine on my machine (localhost), but when I push it to our Web Server the Validator does not work.

 
Old April 3rd, 2006, 11:30 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

I don't use any of the built-in validators if that's what you're talking about. They are way too buggy for me. Exactly as you are reporting. You can create your own validator function and use regular expressions for any type of character validation you need. If you'd like to do that instead, let me know.

Thanks,
Richard

 
Old April 3rd, 2006, 03:48 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I have never had a problem with the RegEx validators, on my Dev Machine or on my production server however, as rstelma said, you can create your own functions to preform these kinds of checks namely from the System.Text.RegularExpressions namespace.

"The one language all programmers understand is profanity."
 
Old April 3rd, 2006, 06:07 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Yeah, I was really excited at first with the .NET built-in validators. But doing the error checking in the code behind or in the object library gives me so much better control and I don't have to worry about either the fickleness of javascript in the built-in validators or in the client browser javascript handlers.

I'm sure there are people that use them without any problem at all. Just a personal choice I guess but I have seen quite a few of these same postings here,... trying to work out bugs in the built-in validators.





 
Old April 3rd, 2006, 09:01 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I dont have problems with the built in validators because I deploy my apps on an intranet, my department has complete control over all the pcs so I know exactly what client types's im going to be serving.

I have not used these in a widespread manner across the net so I do not have a basis of comparision.

"The one language all programmers understand is profanity."





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 collie Visual Studio 2005 0 October 11th, 2007 07:59 AM





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