473,322 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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

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
8 1340
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
..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
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
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
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
..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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

82
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | ...
4
by: Frank Rizzo | last post by:
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...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
48
by: Nathan Sokalski | last post by:
Ever since I found out that they didn't give us a way to install both IE6 and IE7 on the same machine, I have been more frustrated and annoyed with Microsoft than I ever have been with any company...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.