Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.Net Validation controls not working in netscape

Reply
Thread Tools

ASP.Net Validation controls not working in netscape

 
 
Srinivasa Raghavan
Guest
Posts: n/a
 
      07-29-2003
Hi all,


The Asp.net validation controls are skipping the
validations in netscape.Please suggest a solution for this.



Thanks
Srinivasa Raghavan
 
Reply With Quote
 
 
 
 
S. Justin Gengo
Guest
Posts: n/a
 
      07-29-2003
Srinivasa,

The validation controls are not guaranteed to work clientside in any browser
other than IE. That is why you can also check their validation server side
for the exact reason you are experiencing.

Here's what to do:

Place any code that should only fire if the page is valid in an if/then like
this:

If Page.IsValid Then
'---Your code here.
End If

Now the validators will require a post back to the server, but the code
won't execute unless the page is valid. When an invalid page is returned to
a Netscape browser from the server the validators error messages will
appear.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Srinivasa Raghavan" <> wrote in message
news:0be701c355d6$ad0a46c0$...
> Hi all,
>
>
> The Asp.net validation controls are skipping the
> validations in netscape.Please suggest a solution for this.
>
>
>
> Thanks
> Srinivasa Raghavan



 
Reply With Quote
 
 
 
 
Srinivasa Raghavan Sethuraman
Guest
Posts: n/a
 
      07-29-2003
Hi

Canu Suggest some other solution apart from validating at server side.



Thanks
Srinivasa Raghavan



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
S. Justin Gengo
Guest
Posts: n/a
 
      07-29-2003
Sorry, but that's about it.

You could always write your own custom validators for each browser you need
to support and then check for wich browser the client is with
Request.Browser.Browser, but that would be an awful lot of code to write.

There is no guarantee that code will work from one browser to the next. It's
just something we all have to deal with.

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Srinivasa Raghavan Sethuraman" <> wrote in
message news:%...
> Hi
>
> Canu Suggest some other solution apart from validating at server side.
>
>
>
> Thanks
> Srinivasa Raghavan
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET Validation controls and Firefox/Netscape 7.1 =?Utf-8?B?bXN1aw==?= ASP .Net 4 12-03-2004 08:12 PM
Script is working in IE, but not working in Netscape 7 - trouble with document.selection.createRange(); lawrence Javascript 8 05-05-2004 01:43 AM
.net Validation Controls dont work in Netscape ! Help raagz ASP .Net 5 04-17-2004 10:10 PM
Re: ASP.Net Validation controls not working in netscape Srinivasa Raghavan Sethuraman ASP .Net 0 07-29-2003 09:14 PM
Dynamic Validation Controls in Netscape Mike George ASP .Net 1 06-25-2003 02:40 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57