By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,454 Members | 3,208 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,454 IT Pros & Developers. It's quick & easy.

validation controls

P: n/a
Hi,

the validation controls dont work on Netscape or Mozilla and only on
Internet Explorer
why? How do i correct this problem?

Thanks
Nov 18 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
The validation controls emit javascript that only supports IE. You would
either have to switch to serverside validation or do something complex to
override the javascript that the control emits as described here:

http://aspnet.4guysfromrolla.com/articles/051204-1.aspx

--
Hope this helps,
Bryant Hankins
Numinet Systems Inc.
http://www.numinet.com

"Stephen" <st*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

the validation controls dont work on Netscape or Mozilla and only on
Internet Explorer
why? How do i correct this problem?

Thanks

Nov 18 '05 #2

P: n/a
I rewrote ASP.NET validation to address numerous limitations, including
DHTML-only support for client-side validation, in Professional Validation
And More (http://www.peterblum.com/vam/home.aspx).
Its 22 validators greatly expand what you can do with validation, from the
UI it offers, to the rules of validation. It helps you avoid writing custom
code and hacks that are used with Microsoft's validators.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Stephen" <st*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

the validation controls dont work on Netscape or Mozilla and only on
Internet Explorer
why? How do i correct this problem?

Thanks

Nov 18 '05 #3

P: n/a
Wow, if it's this much of a pain to support a browser other than Microsoft
IE, then why are we relying on these controls? Most of us have to support
more than MS. It's a good thing I'm also using server validation... I
think it would be easiest just to leave it at that, at least for now... I'm
running out of time.

Andrea
"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:LM**************@cpmsftngxa06.phx.gbl...
Stephen,

The client-side validation in ASP.NET targets the Internet Explorer DOM.
In cases where a user is using a different browser, server-side validation
will take place.

If you want client-side validation on all platforms, you can write your own client validation scripts. Here's a sample I turned up:

http://www.superdotnet.com/Article.aspx?ArticleID=126

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
From: "Stephen" <st*********@hotmail.com>
Subject: validation controls
Date: Wed, 21 Jul 2004 12:11:58 -0700
Lines: 9
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <#C**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 69.28.129.41
Path:

cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0 8.phx.gbl!TK2MSFTNGP10.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:248924X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hi,

the validation controls dont work on Netscape or Mozilla and only on
Internet Explorer
why? How do i correct this problem?

Thanks

Nov 18 '05 #4

P: n/a
Andrea,

The validation controls will validate on the client AND the server. If the
browser does not support client validation, the control will validate on
the server.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
From: "Andrea Williams" <an*******@hotmailIHATESPAM.com>
References: <#C**************@TK2MSFTNGP10.phx.gbl> <LM**************@cpmsftngxa06.phx.gbl>Subject: Re: validation controls
Date: Thu, 22 Jul 2004 15:35:46 -0700
Lines: 63
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.3790.181
Message-ID: <#v*************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: c-24-17-162-64.client.comcast.net 24.17.162.64
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP12
.phx.gblXref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:249246
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Wow, if it's this much of a pain to support a browser other than Microsoft
IE, then why are we relying on these controls? Most of us have to support
more than MS. It's a good thing I'm also using server validation... I
think it would be easiest just to leave it at that, at least for now... I'mrunning out of time.

Andrea
"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:LM**************@cpmsftngxa06.phx.gbl...
Stephen,

The client-side validation in ASP.NET targets the Internet Explorer DOM.
In cases where a user is using a different browser, server-side validation
will take place.

If you want client-side validation on all platforms, you can write your

own
client validation scripts. Here's a sample I turned up:

http://www.superdotnet.com/Article.aspx?ArticleID=126

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
>From: "Stephen" <st*********@hotmail.com>
>Subject: validation controls
>Date: Wed, 21 Jul 2004 12:11:58 -0700
>Lines: 9
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
>Message-ID: <#C**************@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: 69.28.129.41
>Path:

cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSF TNGXA05.phx.gbl!TK2MSFTNGP

0
8.phx.gbl!TK2MSFTNGP10.phx.gbl
>Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.framework.aspnet:248924 >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>
>Hi,
>
>the validation controls dont work on Netscape or Mozilla and only on
>Internet Explorer
>why? How do i correct this problem?
>
>Thanks
>
>
>



Nov 18 '05 #5

P: n/a
Unless I'm missing something, that is NOT happening for me! I'm had to
create the code myself to validate my fields b/c the submit was happening.
Is there something inparticular I need to do to make the validation work
from the controls?

Andrea
"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:tr**************@cpmsftngxa06.phx.gbl...
Andrea,

The validation controls will validate on the client AND the server. If the browser does not support client validation, the control will validate on
the server.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
From: "Andrea Williams" <an*******@hotmailIHATESPAM.com>
References: <#C**************@TK2MSFTNGP10.phx.gbl> <LM**************@cpmsftngxa06.phx.gbl>
Subject: Re: validation controls
Date: Thu, 22 Jul 2004 15:35:46 -0700
Lines: 63
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.3790.181
Message-ID: <#v*************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: c-24-17-162-64.client.comcast.net 24.17.162.64
Path:

cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP12 phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:249246
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Wow, if it's this much of a pain to support a browser other than MicrosoftIE, then why are we relying on these controls? Most of us have to supportmore than MS. It's a good thing I'm also using server validation... I
think it would be easiest just to leave it at that, at least for now...

I'm
running out of time.

Andrea
"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:LM**************@cpmsftngxa06.phx.gbl...
Stephen,

The client-side validation in ASP.NET targets the Internet Explorer DOM. In cases where a user is using a different browser, server-side

validation will take place.

If you want client-side validation on all platforms, you can write your

own
client validation scripts. Here's a sample I turned up:

http://www.superdotnet.com/Article.aspx?ArticleID=126

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
>From: "Stephen" <st*********@hotmail.com>
>Subject: validation controls
>Date: Wed, 21 Jul 2004 12:11:58 -0700
>Lines: 9
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
>Message-ID: <#C**************@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: 69.28.129.41
>Path:

cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSF TNGXA05.phx.gbl!TK2MSFTNGP
0 8.phx.gbl!TK2MSFTNGP10.phx.gbl
>Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.framework.aspnet:248924
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>
>Hi,
>
>the validation controls dont work on Netscape or Mozilla and only on
>Internet Explorer
>why? How do i correct this problem?
>
>Thanks
>
>
>


Nov 18 '05 #6

P: n/a
Andrea,

That is exactly what should happen. If the client does not support
validation, validation takes place on the server.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
From: "Andrea Williams" <an*******@hotmailIHATESPAM.com>
References: <#C**************@TK2MSFTNGP10.phx.gbl> <LM**************@cpmsftngxa06.phx.gbl>
<#v*************@TK2MSFTNGP12.phx.gbl>
<tr**************@cpmsftngxa06.phx.gbl>Subject: Re: validation controls
Date: Tue, 27 Jul 2004 17:27:00 -0700
Lines: 120
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
Message-ID: <ub**************@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: c-24-17-162-64.client.comcast.net 24.17.162.64
Path: cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP09
.phx.gblXref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:251185
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Unless I'm missing something, that is NOT happening for me! I'm had to
create the code myself to validate my fields b/c the submit was happening.
Is there something inparticular I need to do to make the validation work
from the controls?

Andrea
"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:tr**************@cpmsftngxa06.phx.gbl...
Andrea,

The validation controls will validate on the client AND the server. If

the
browser does not support client validation, the control will validate on
the server.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
>From: "Andrea Williams" <an*******@hotmailIHATESPAM.com>
>References: <#C**************@TK2MSFTNGP10.phx.gbl>

<LM**************@cpmsftngxa06.phx.gbl>
>Subject: Re: validation controls
>Date: Thu, 22 Jul 2004 15:35:46 -0700
>Lines: 63
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.3790.181
>X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.3790.181
>Message-ID: <#v*************@TK2MSFTNGP12.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: c-24-17-162-64.client.comcast.net 24.17.162.64
>Path:

cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSF TNGP08.phx.gbl!TK2MSFTNGP1

2
phx.gbl
>Xref: cpmsftngxa06.phx.gblmicrosoft.public.dotnet.framework.aspnet:249246 >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>
>Wow, if it's this much of a pain to support a browser other thanMicrosoft >IE, then why are we relying on these controls? Most of us have tosupport >more than MS. It's a good thing I'm also using server validation... I
>think it would be easiest just to leave it at that, at least for now...

I'm
>running out of time.
>
>Andrea
>
>
>"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
>news:LM**************@cpmsftngxa06.phx.gbl...
>> Stephen,
>>
>> The client-side validation in ASP.NET targets the Internet ExplorerDOM. >> In cases where a user is using a different browser, server-side

validation
>> will take place.
>>
>> If you want client-side validation on all platforms, you can write your >own
>> client validation scripts. Here's a sample I turned up:
>>
>> http://www.superdotnet.com/Article.aspx?ArticleID=126
>>
>> Jim Cheshire [MSFT]
>> MCP+I, MCSE, MCSD, MCDBA
>> Microsoft Developer Support
>> ja******@online.microsoft.com
>>
>> This post is provided "AS-IS" with no warranties and confers no rights. >>
>> --------------------
>> >From: "Stephen" <st*********@hotmail.com>
>> >Subject: validation controls
>> >Date: Wed, 21 Jul 2004 12:11:58 -0700
>> >Lines: 9
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
>> >Message-ID: <#C**************@TK2MSFTNGP10.phx.gbl>
>> >Newsgroups: microsoft.public.dotnet.framework.aspnet
>> >NNTP-Posting-Host: 69.28.129.41
>> >Path:
>>


cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MS FTNGXA05.phx.gbl!TK2MSFTNG P 0
>> 8.phx.gbl!TK2MSFTNGP10.phx.gbl
>> >Xref: cpmsftngxa06.phx.gbl
>microsoft.public.dotnet.framework.aspnet:248924
>> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>> >
>> >Hi,
>> >
>> >the validation controls dont work on Netscape or Mozilla and only on
>> >Internet Explorer
>> >why? How do i correct this problem?
>> >
>> >Thanks
>> >
>> >
>> >
>>
>
>
>



Nov 18 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.