Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply

ASP Net - Cross-browser compatibility of Asp.net 2.0

 
Thread Tools Search this Thread
Old 03-14-2006, 04:38 AM   #1
dejavue82@yahoo.com
 
Posts: n/a
Default Cross-browser compatibility of Asp.net 2.0

Dear Asp.net users,

I have seen some people comment that their asp.net websites render
differently with various web browsers. Are they doing somthing wrong?

In particilar,

1) I am wondering how cross-browser compatible the client code is the
asp.net 2.0 generates.

2) Are there server controls included with asp.net 2.0 that only work
with IE?

3) Does the validation control work without javascript enabled? (If you
visit dell.com and disable javascript, their login form doesn't even
appear! It could well be that they are still using asp.net 1.0.)

I appreciate your time and input.

Regards,

Jim Light

  Reply With Quote
Old 03-14-2006, 05:31 AM   #2
Mark Rae
 
Posts: n/a
Default Re: Cross-browser compatibility of Asp.net 2.0

<> wrote in message
news: oups.com...

> I have seen some people comment that their asp.net websites render
> differently with various web browsers. Are they doing somthing wrong?


Generally speaking, I don't even bother to verify against anything other
than IE & FireFox on Windows. It's simply not worth the effort since those
two browsers account for 94% of web usage by browser, and Windows
constitutes 92% of web usage by OS.
http://www.thecounter.com/stats/2005...er/browser.php
http://www.thecounter.com/stats/2005/December/os.php

That said, I'm currently in the process of verifying a website against
Safari and FireFox on a Mac. FireFox seems to be fairly OK, but Safari is an
absolute nightmare. Specifically tables seem to size themselves differently,
making layout a real pain. For my own interest, I tried to use Safari on one
of my other sites, and couldn't even log on! FireFox seemed to work fine,
though...


  Reply With Quote
Old 03-14-2006, 05:29 PM   #3
dejavue82@yahoo.com
 
Posts: n/a
Default Re: Cross-browser compatibility of Asp.net 2.0

Thank you very much. Could somebody also respond to my other 2
questions?

2) Are there server controls included with asp.net 2.0 that only work
with IE?

3) Does the validation control work without javascript enabled? (If you

visit dell.com and disable javascript, their login form doesn't even
appear! It could well be that they are still using asp.net 1.0.)

  Reply With Quote
Old 03-14-2006, 07:14 PM   #4
Juan T. Llibre
 
Posts: n/a
Default Re: Cross-browser compatibility of Asp.net 2.0

re:
> 2) Are there server controls included with asp.net 2.0 that only work with IE?


They should work with any browser, provided you detect the browser
and send it HTML/javascript it can understand.

Controls can send different output to different browsers.
It's up to you to implement that, though.

re:
> 3) Does the validation control work without javascript enabled?


All of the validation controls do server side validation, not client-side.




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<> wrote in message news: ps.com...
> Thank you very much. Could somebody also respond to my other 2
> questions?
>
> 2) Are there server controls included with asp.net 2.0 that only work
> with IE?
>
> 3) Does the validation control work without javascript enabled? (If you
>
> visit dell.com and disable javascript, their login form doesn't even
> appear! It could well be that they are still using asp.net 1.0.)
>



  Reply With Quote
Old 03-14-2006, 07:22 PM   #5
dejavue82@yahoo.com
 
Posts: n/a
Default Re: Cross-browser compatibility of Asp.net 2.0

Hmmm, I thought that Asp.net 2.0 detects the type of browser
automatically and then sends the correct html to that browser, no?

  Reply With Quote
Old 03-14-2006, 08:28 PM   #6
Juan T. Llibre
 
Posts: n/a
Default Re: Cross-browser compatibility of Asp.net 2.0

No. It has the *capability* to do that.
You have to implement it...and update the necessary files.

Look into sending downlevel/uplevel HTML to browsers,
and make sure you have the correct entries in your web.config or machine.config
( yes, you can still use them ) or write updated *.browser files which cover
the capabilities for the browsers you are intending to target.

The *.browser files should be located at :

drive:\%windir%\Microsoft.NET\Framework\v2.0.50727 \CONFIG\Browsers

Use the samples provided to create your custom *.browser files,
depending on your targeted browser's capabilities.




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<> wrote in message news: ps.com...
> Hmmm, I thought that Asp.net 2.0 detects the type of browser
> automatically and then sends the correct html to that browser, no?



  Reply With Quote
Old 03-14-2006, 11:01 PM   #7
dejavue82@yahoo.com
 
Posts: n/a
Default Re: Cross-browser compatibility of Asp.net 2.0

Thank you very much for your great response!

To give some background info as to why I'm asking these questions: I am
trying to decide on a web language and would like to stick with which
ever one I choose.

Just to clarify: You are saying that one could either perform the
configurations within the website files (ie. web.config) OR on the
server (ie. .browser)? What impact would this have in a shared hosting
environment?

Again, thanks a lot!

Regards,

Jim Light

  Reply With Quote
Old 03-15-2006, 02:42 AM   #8
Juan T. Llibre
 
Posts: n/a
Default Re: Cross-browser compatibility of Asp.net 2.0

re:
> Just to clarify: You are saying that one could either perform the
> configurations within the website files (ie. web.config) OR on the
> server (ie. .browser)?


If you use web.config, it would have a per-application effect.

If you use machine.config, the effect would be on the server as a whole.
If you use*.browser files, the effect would be on the server as a whole.

re:
> What impact would this have in a shared hosting environment?


If you don't modify machine.config or use *.browser files, each individual user
would have to implement their own modifications to web.config if they want
to be able to implement accurate browser detection.

It's up to you as a shared hoster whether you want to offer such a service to your users.



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<> wrote in message news: oups.com...
> Thank you very much for your great response!
>
> To give some background info as to why I'm asking these questions: I am
> trying to decide on a web language and would like to stick with which
> ever one I choose.
>
> Just to clarify: You are saying that one could either perform the
> configurations within the website files (ie. web.config) OR on the
> server (ie. .browser)? What impact would this have in a shared hosting
> environment?
>
> Again, thanks a lot!
>
> Regards,
>
> Jim Light
>



  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.Net Session Cookie Lost on mozilla/netscape After return from cross domain saurabhm Software 3 09-18-2009 11:36 AM
Asp.Net Custom Controls & Safari Compatibility Osiris General Help Related Topics 0 06-01-2009 07:03 PM
JavaScript on Closing the browser for ASP.NET srivatsahg Software 0 03-02-2009 09:46 AM
want to display .chm in browser control of ASP.NET 2.0 pratibhaskhaire General Help Related Topics 0 02-14-2008 05:23 AM
ASP.NET Server controls on cross post back Fachmann Software 1 12-18-2007 07:48 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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