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

How to make other browsers work well with my asp.net app?

P: n/a
I am trying to make sure that my app works fine with browsers other than
IE. I am finding that many features simply donít work on other
browsers. For instance, the Validators are actually doing validations
on server, rather than on the client. I know for sure that Mozilla or
Opera or whatever can do a silly validation on the client just as well
as IE. How can I force validations to be done on the client with such
browsers?

In general, how can I force my app to treat other browsers as it treats IE?

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


P: n/a
Validators are on the client side all the time, even for IE, are you talking
about VS.NET validators? if yes then they are definitely on the client side.

m.

---------------
"Frank Rizzo" <no**@none.com> wrote in message
news:ux*************@TK2MSFTNGP11.phx.gbl...
I am trying to make sure that my app works fine with browsers other than
IE. I am finding that many features simply donít work on other
browsers. For instance, the Validators are actually doing validations
on server, rather than on the client. I know for sure that Mozilla or
Opera or whatever can do a silly validation on the client just as well
as IE. How can I force validations to be done on the client with such
browsers?

In general, how can I force my app to treat other browsers as it treats IE?
Thanks.

Nov 18 '05 #2

P: n/a
..net only outputs the client side validation code if the browser is IE. as
the validation client code uses propriety IE dom objects rather than the
standard w3c dom objects, the client code only works with IE.

you can recode the validation script to be w3c complaint so it works with
ie,netscape 6+, mozilla, opera, etc. then just lie and force the
ClientTarget to be ie.

also, notice if the broswer is not ie, it will not output width and height
styles. to get around this use the following code in onload or oninit:

if ("netscape|gecko|opera".IndexOf(this.Request.Brows er.Browser.ToLower())
=0 )
this.ClientTarget = "Uplevel";

-- bruce (sqlwork.com)

"Frank Rizzo" <no**@none.com> wrote in message
news:ux*************@TK2MSFTNGP11.phx.gbl... I am trying to make sure that my app works fine with browsers other than
IE. I am finding that many features simply donít work on other
browsers. For instance, the Validators are actually doing validations
on server, rather than on the client. I know for sure that Mozilla or
Opera or whatever can do a silly validation on the client just as well
as IE. How can I force validations to be done on the client with such
browsers?

In general, how can I force my app to treat other browsers as it treats IE?
Thanks.

Nov 18 '05 #3

P: n/a
Mohammad Samara wrote:
Validators are on the client side all the time, even for IE, are you talking
about VS.NET validators? if yes then they are definitely on the client side.
I am using the RequiredFieldValidator and RegularExpressionValidator.


m.

---------------
"Frank Rizzo" <no**@none.com> wrote in message
news:ux*************@TK2MSFTNGP11.phx.gbl...
I am trying to make sure that my app works fine with browsers other than
IE. I am finding that many features simply donít work on other
browsers. For instance, the Validators are actually doing validations
on server, rather than on the client. I know for sure that Mozilla or
Opera or whatever can do a silly validation on the client just as well
as IE. How can I force validations to be done on the client with such
browsers?

In general, how can I force my app to treat other browsers as it treats


IE?
Thanks.


Nov 18 '05 #4

P: n/a
Yes they are client side items.

Try the view source option in IE when you run the page, you will find the
script for them there.

As for other broswers, we also have no problems viewing them in Mozilla's
browsers.

Do you maybe need to run aspnet_regiis.exe-i to restore all the scripts?

m.
------------------------
"Frank Rizzo" <no**@none.com> wrote in message
news:u4**************@TK2MSFTNGP11.phx.gbl...
Mohammad Samara wrote:
Validators are on the client side all the time, even for IE, are you talking about VS.NET validators? if yes then they are definitely on the client
side.
I am using the RequiredFieldValidator and RegularExpressionValidator.


m.

---------------
"Frank Rizzo" <no**@none.com> wrote in message
news:ux*************@TK2MSFTNGP11.phx.gbl...
I am trying to make sure that my app works fine with browsers other than
IE. I am finding that many features simply donít work on other
browsers. For instance, the Validators are actually doing validations
on server, rather than on the client. I know for sure that Mozilla or
Opera or whatever can do a silly validation on the client just as well
as IE. How can I force validations to be done on the client with such
browsers?

In general, how can I force my app to treat other browsers as it treats


IE?
Thanks.


Nov 18 '05 #5

P: n/a
issues with validation controls...
yes they do have both client side and server side code...
depending upon browsers capability.. specially when you use span rendering
to show the message is limited by the browser
or rather what asp.net (or the default validation control) thinks of that
browser. try setting ShowMessageBox to true.

But even then it doesnt mean it will render it fine. If you are not satified
by the behaviour.. i would advice you to use 3rd party validation controls.
you can search this newsgroup for some... i think i have seen a similar
message in past and someone mentioned a good validation control lib.
otherwise try your luck at www.asp.net go to controls and look for
validation controls...

hth

--
Regards,

HD

Once a Geek.... Always a Geek
"Frank Rizzo" <no**@none.com> wrote in message
news:ux*************@TK2MSFTNGP11.phx.gbl...
I am trying to make sure that my app works fine with browsers other than
IE. I am finding that many features simply donít work on other
browsers. For instance, the Validators are actually doing validations
on server, rather than on the client. I know for sure that Mozilla or
Opera or whatever can do a silly validation on the client just as well
as IE. How can I force validations to be done on the client with such
browsers?

In general, how can I force my app to treat other browsers as it treats IE?
Thanks.

Nov 18 '05 #6

P: n/a
..net only outputs the client side validation code if the browser is IE. as
the validation client code uses propriety IE dom objects rather than the
standard w3c dom objects, the client code only works with IE.

you can recode the validation script to be w3c complaint so it works with
ie,netscape 6+, mozilla, opera, etc. then just lie and force the
ClientTarget to be ie.

also, notice if the broswer is not ie, it will not output width and height
styles. to get around this use the following code in onload or oninit:

if ("netscape|gecko|opera".IndexOf(this.Request.Brows er.Browser.ToLower())
=0 )
this.ClientTarget = "Uplevel";

-- bruce (sqlwork.com)

"Frank Rizzo" <no**@none.com> wrote in message
news:ux*************@TK2MSFTNGP11.phx.gbl... I am trying to make sure that my app works fine with browsers other than
IE. I am finding that many features simply donít work on other
browsers. For instance, the Validators are actually doing validations
on server, rather than on the client. I know for sure that Mozilla or
Opera or whatever can do a silly validation on the client just as well
as IE. How can I force validations to be done on the client with such
browsers?

In general, how can I force my app to treat other browsers as it treats IE?
Thanks.

Nov 18 '05 #7

P: n/a
Mohammad Samara wrote:
Yes they are client side items.

Try the view source option in IE when you run the page, you will find the
script for them there.
I know that. It does exactly that on IE browsers - that's what I said
to begin with.
As for other broswers, we also have no problems viewing them in Mozilla's
browsers.
Viewing - yes, that's no problem. The problem is that with Mozilla the
validation happens on the server, not on the client. Do View source on
Mozilla and you'll see no javascript whatsoever. ASP.NET treats it as a
down-level browser.

Do you maybe need to run aspnet_regiis.exe-i to restore all the scripts?

m.
------------------------
"Frank Rizzo" <no**@none.com> wrote in message
news:u4**************@TK2MSFTNGP11.phx.gbl...
Mohammad Samara wrote:

Validators are on the client side all the time, even for IE, are you
talking
about VS.NET validators? if yes then they are definitely on the client


side.
I am using the RequiredFieldValidator and RegularExpressionValidator.
m.

---------------
"Frank Rizzo" <no**@none.com> wrote in message
news:ux*************@TK2MSFTNGP11.phx.gbl...
I am trying to make sure that my app works fine with browsers other than
IE. I am finding that many features simply donít work on other
browsers. For instance, the Validators are actually doing validations
on server, rather than on the client. I know for sure that Mozilla or
Opera or whatever can do a silly validation on the client just as well
as IE. How can I force validations to be done on the client with such
browsers?

In general, how can I force my app to treat other browsers as it treats

IE?
Thanks.


Nov 18 '05 #8

P: n/a
Mohammad Samara wrote:
Yes they are client side items.

Try the view source option in IE when you run the page, you will find the
script for them there.
I know that. It does exactly that on IE browsers - that's what I said
to begin with.
As for other broswers, we also have no problems viewing them in Mozilla's
browsers.
Viewing - yes, that's no problem. The problem is that with Mozilla the
validation happens on the server, not on the client. Do View source on
Mozilla and you'll see no javascript whatsoever. ASP.NET treats it as a
down-level browser.

Do you maybe need to run aspnet_regiis.exe-i to restore all the scripts?

m.
------------------------
"Frank Rizzo" <no**@none.com> wrote in message
news:u4**************@TK2MSFTNGP11.phx.gbl...
Mohammad Samara wrote:

Validators are on the client side all the time, even for IE, are you
talking
about VS.NET validators? if yes then they are definitely on the client


side.
I am using the RequiredFieldValidator and RegularExpressionValidator.
m.

---------------
"Frank Rizzo" <no**@none.com> wrote in message
news:ux*************@TK2MSFTNGP11.phx.gbl...
I am trying to make sure that my app works fine with browsers other than
IE. I am finding that many features simply donít work on other
browsers. For instance, the Validators are actually doing validations
on server, rather than on the client. I know for sure that Mozilla or
Opera or whatever can do a silly validation on the client just as well
as IE. How can I force validations to be done on the client with such
browsers?

In general, how can I force my app to treat other browsers as it treats

IE?
Thanks.


Nov 18 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.