Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 3rd, 2006, 04:18 AM
Authorized User
 
Join Date: Jan 2006
Location: Kolkata, West Bengal, India.
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.

  #2 (permalink)  
Old April 3rd, 2006, 11:30 AM
Friend of Wrox
Points: 2,101, Level: 18
Points: 2,101, Level: 18 Points: 2,101, Level: 18 Points: 2,101, Level: 18
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: , , .
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

  #3 (permalink)  
Old April 3rd, 2006, 03:48 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
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."
  #4 (permalink)  
Old April 3rd, 2006, 06:07 PM
Friend of Wrox
Points: 2,101, Level: 18
Points: 2,101, Level: 18 Points: 2,101, Level: 18 Points: 2,101, Level: 18
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: , , .
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.





  #5 (permalink)  
Old April 3rd, 2006, 09:01 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
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."
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.