473,847 Members | 1,499 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.Net 2.0 vs. Safari Browser

I'm having some serious difficulties with my ASP.Net 2.0 app rendering in
Safari 2.0.3. The most immediate problem is that the menu control doesn't
seem to work at all, particularly the use of dynamic levels.

I've Googled around a bit and determined that the problem is not so much
with Safari as it is with ASP.Net inaccurately determining the browser
capabilites for that browser. In the 2.0 Framework it appears that browser
caps are defined in *.browser files located in

C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \CONFIG\Browser s

If I look there I don't find anything for a Safari browser at all. Also,
there are some references to controlAdapters in these files. I've found
references to an MSDN article, "Authoring ASP.NET Server Control Adapters -
An Introduction", but the link,

http://msdn.microsoft.com/library/en...Adapters.aspis dead.So, can anyone provide me with addtional information on how to obtain/createa safari.browser file and how to use the corresponding control adapters?Thanks in advance, Bill

Feb 12 '06 #1
5 2624
re:
can anyone provide me with addtional information on how to obtain/create a safari.browser file
Check out : http://slingfive.com/pages/code/browserCaps/

The code you need to add is at :

http://slingfive.com/pages/code/brow...aps_spaces.txt

If you want to use 2.0-only features, you could use
that code to create a safari.browser file using that info.

See : http://msdn2.microsoft.com/en-us/library/ms228122.aspx

You can also just modify your web.config's browsercaps element.

Using the browserCaps element in the Web.config file to define
browsers is deprecated in the .NET Framework 2.0 but still supported.

The data in this element is merged with the information from the browser definition files.

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/
=============== =============== =====
"Bill Cohagan" <co*****@nospam .nospam> wrote in message news:eV******** *****@TK2MSFTNG P10.phx.gbl... I'm having some serious difficulties with my ASP.Net 2.0 app rendering in Safari 2.0.3. The most
immediate problem is that the menu control doesn't seem to work at all, particularly the use of
dynamic levels.

I've Googled around a bit and determined that the problem is not so much with Safari as it is with
ASP.Net inaccurately determining the browser capabilites for that browser. In the 2.0 Framework it
appears that browser caps are defined in *.browser files located in

C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \CONFIG\Browser s

If I look there I don't find anything for a Safari browser at all. Also, there are some references
to controlAdapters in these files. I've found references to an MSDN article, "Authoring ASP.NET
Server Control Adapters - An Introduction", but the link,

http://msdn.microsoft.com/library/en...Adapters.aspis dead.So,
can anyone provide me with addtional information on how to obtain/createa safari.browser file and
how to use the corresponding control adapters?Thanks in advance, Bill

Feb 12 '06 #2
Juan
Thanks for the info and pointers. Sadly I'm still unable to solve the
problem. I've set up a browserCaps element as you (and the referenced
documents) suggested. I've confirmed that it is being used as I've
installed the browserCaps_spa ces.txt code into my default.aspx page. So I
can see what ASP.Net thinks the browser's capabilities are.

So far so good. The problem is that the dynamic menus still do not work.
If I look at the html in the response (to Safari) I see that there are no
OnHover events wired up (for starters). I've tweaked the browserCaps to try
to "trick" ASP.Net into rendering that code just to determine what
capability is at fault. Thus far I've been unable to determine why (in terms
of capabilities) ASP.Net fails to render the expected code.

Any idea how to further troubleshoot this?

Thanks again,
Bill

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:Oi******** ********@TK2MSF TNGP09.phx.gbl. ..
re:
can anyone provide me with addtional information on how to obtain/create
a safari.browser file


Check out : http://slingfive.com/pages/code/browserCaps/

The code you need to add is at :

http://slingfive.com/pages/code/brow...aps_spaces.txt

If you want to use 2.0-only features, you could use
that code to create a safari.browser file using that info.

See : http://msdn2.microsoft.com/en-us/library/ms228122.aspx

You can also just modify your web.config's browsercaps element.

Using the browserCaps element in the Web.config file to define
browsers is deprecated in the .NET Framework 2.0 but still supported.

The data in this element is merged with the information from the browser
definition files.

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/
=============== =============== =====
"Bill Cohagan" <co*****@nospam .nospam> wrote in message
news:eV******** *****@TK2MSFTNG P10.phx.gbl...
I'm having some serious difficulties with my ASP.Net 2.0 app rendering in
Safari 2.0.3. The most immediate problem is that the menu control doesn't
seem to work at all, particularly the use of dynamic levels.

I've Googled around a bit and determined that the problem is not so much
with Safari as it is with ASP.Net inaccurately determining the browser
capabilites for that browser. In the 2.0 Framework it appears that
browser caps are defined in *.browser files located in

C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \CONFIG\Browser s

If I look there I don't find anything for a Safari browser at all. Also,
there are some references to controlAdapters in these files. I've found
references to an MSDN article, "Authoring ASP.NET Server Control
Adapters - An Introduction", but the link,

http://msdn.microsoft.com/library/en...Adapters.aspis
dead.So, can anyone provide me with addtional information on how to
obtain/createa safari.browser file and how to use the corresponding
control adapters?Thanks in advance, Bill


Feb 12 '06 #3
Juan
I've downloaded/installed a FireFox browser on one of our test machines
(miniMac) and it works fine with our ASP.Net 2.0 website, including the
dynamic menus. I've eyeballed the capabilites and they look pretty much
identical to those reported for Safari! So, now I'm really confused (unless
MS just has something against Apple browsers!)

I'm still interested in solving the problem of course, but the pressure is
a little lower since we have a fallback solution with FireFox.

Bill

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:Oi******** ********@TK2MSF TNGP09.phx.gbl. ..
re:
can anyone provide me with addtional information on how to obtain/create
a safari.browser file


Check out : http://slingfive.com/pages/code/browserCaps/

The code you need to add is at :

http://slingfive.com/pages/code/brow...aps_spaces.txt

If you want to use 2.0-only features, you could use
that code to create a safari.browser file using that info.

See : http://msdn2.microsoft.com/en-us/library/ms228122.aspx

You can also just modify your web.config's browsercaps element.

Using the browserCaps element in the Web.config file to define
browsers is deprecated in the .NET Framework 2.0 but still supported.

The data in this element is merged with the information from the browser
definition files.

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/
=============== =============== =====
"Bill Cohagan" <co*****@nospam .nospam> wrote in message
news:eV******** *****@TK2MSFTNG P10.phx.gbl...
I'm having some serious difficulties with my ASP.Net 2.0 app rendering in
Safari 2.0.3. The most immediate problem is that the menu control doesn't
seem to work at all, particularly the use of dynamic levels.

I've Googled around a bit and determined that the problem is not so much
with Safari as it is with ASP.Net inaccurately determining the browser
capabilites for that browser. In the 2.0 Framework it appears that
browser caps are defined in *.browser files located in

C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \CONFIG\Browser s

If I look there I don't find anything for a Safari browser at all. Also,
there are some references to controlAdapters in these files. I've found
references to an MSDN article, "Authoring ASP.NET Server Control
Adapters - An Introduction", but the link,

http://msdn.microsoft.com/library/en...Adapters.aspis
dead.So, can anyone provide me with addtional information on how to
obtain/createa safari.browser file and how to use the corresponding
control adapters?Thanks in advance, Bill


Feb 12 '06 #4
re:
The problem is that the dynamic menus still do not work.
No tweaking you do will allow Safari to understand HTML it can't understand.

re: The problem is that the dynamic menus still do not work. Thus far I've been unable to determine
why (in terms of capabilities) ASP.Net fails to render the expected code.
What the change to browsercaps does is allow ASP.NET to send Safari
HTML it should understand, but if Safari doesn't understand XHTML,
then sending it XHTML will not automagically make Safari understand it.

I am not too familiar with Safari's capabilities.
Is it capable of understanding XHTML ?

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/
=============== =============== =====
"Bill Cohagan" <co*****@nospam .nospam> wrote in message
news:OM******** ******@TK2MSFTN GP12.phx.gbl... Juan
Thanks for the info and pointers. Sadly I'm still unable to solve the problem. I've set up a
browserCaps element as you (and the referenced documents) suggested. I've confirmed that it is
being used as I've installed the browserCaps_spa ces.txt code into my default.aspx page. So I can
see what ASP.Net thinks the browser's capabilities are. So far so good. The problem is that the dynamic menus still do not work. If I look at the html in
the response (to Safari) I see that there are no OnHover events wired up (for starters). I've
tweaked the browserCaps to try to "trick" ASP.Net into rendering that code just to determine what
capability is at fault. Thus far I've been unable to determine why (in terms of capabilities)
ASP.Net fails to render the expected code.

Any idea how to further troubleshoot this?

Thanks again,
Bill "Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:Oi******** ********@TK2MSF TNGP09.phx.gbl. ..
re:
can anyone provide me with addtional information on how to obtain/create a safari.browser file


Check out : http://slingfive.com/pages/code/browserCaps/

The code you need to add is at :

http://slingfive.com/pages/code/brow...aps_spaces.txt

If you want to use 2.0-only features, you could use
that code to create a safari.browser file using that info.

See : http://msdn2.microsoft.com/en-us/library/ms228122.aspx

You can also just modify your web.config's browsercaps element.

Using the browserCaps element in the Web.config file to define
browsers is deprecated in the .NET Framework 2.0 but still supported.

The data in this element is merged with the information from the browser definition files.

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/
=============== =============== =====
"Bill Cohagan" <co*****@nospam .nospam> wrote in message
news:eV******** *****@TK2MSFTNG P10.phx.gbl...
I'm having some serious difficulties with my ASP.Net 2.0 app rendering in Safari 2.0.3. The most
immediate problem is that the menu control doesn't seem to work at all, particularly the use of
dynamic levels.

I've Googled around a bit and determined that the problem is not so much with Safari as it is
with ASP.Net inaccurately determining the browser capabilites for that browser. In the 2.0
Framework it appears that browser caps are defined in *.browser files located in

C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \CONFIG\Browser s

If I look there I don't find anything for a Safari browser at all. Also, there are some
references to controlAdapters in these files. I've found references to an MSDN article,
"Authoring ASP.NET Server Control Adapters - An Introduction", but the link,

http://msdn.microsoft.com/library/en...Adapters.aspis
dead.So, can anyone provide me with addtional information on how to obtain/createa
safari.browser file and how to use the corresponding control adapters?Thanks in advance, Bill



Feb 12 '06 #5
The only difference I see between Safari and Firefox is that
Safari is based on the "AppleWebKi t" while Firefox is not.

The capabilities, otherwise, seem identical.

This reinforces my earlier idea that the difference must
be whether Safari is capable of understanding XHTML.

If Firefox understands the dynamic menus ( XHTML-based, right ? )
and Safari doesn't, I can't think of anything else to pin the rendering difference on.


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/
=============== =============== =====
"Bill Cohagan" <co*****@nospam .nospam> wrote in message
news:Oy******** ******@tk2msftn gp13.phx.gbl...
Juan
I've downloaded/installed a FireFox browser on one of our test machines (miniMac) and it works
fine with our ASP.Net 2.0 website, including the dynamic menus. I've eyeballed the capabilites and
they look pretty much identical to those reported for Safari! So, now I'm really confused (unless
MS just has something against Apple browsers!)

I'm still interested in solving the problem of course, but the pressure is a little lower since
we have a fallback solution with FireFox.

Bill "Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:Oi******** ********@TK2MSF TNGP09.phx.gbl. ..
re:
can anyone provide me with addtional information on how to obtain/create a safari.browser file


Check out : http://slingfive.com/pages/code/browserCaps/

The code you need to add is at :

http://slingfive.com/pages/code/brow...aps_spaces.txt

If you want to use 2.0-only features, you could use
that code to create a safari.browser file using that info.

See : http://msdn2.microsoft.com/en-us/library/ms228122.aspx

You can also just modify your web.config's browsercaps element.

Using the browserCaps element in the Web.config file to define
browsers is deprecated in the .NET Framework 2.0 but still supported.

The data in this element is merged with the information from the browser definition files.

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/
=============== =============== =====
"Bill Cohagan" <co*****@nospam .nospam> wrote in message
news:eV******** *****@TK2MSFTNG P10.phx.gbl...
I'm having some serious difficulties with my ASP.Net 2.0 app rendering in Safari 2.0.3. The most
immediate problem is that the menu control doesn't seem to work at all, particularly the use of
dynamic levels.

I've Googled around a bit and determined that the problem is not so much with Safari as it is
with ASP.Net inaccurately determining the browser capabilites for that browser. In the 2.0
Framework it appears that browser caps are defined in *.browser files located in

C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \CONFIG\Browser s

If I look there I don't find anything for a Safari browser at all. Also, there are some
references to controlAdapters in these files. I've found references to an MSDN article,
"Authoring ASP.NET Server Control Adapters - An Introduction", but the link,

http://msdn.microsoft.com/library/en...Adapters.aspis
dead.So, can anyone provide me with addtional information on how to obtain/createa
safari.browser file and how to use the corresponding control adapters?Thanks in advance, Bill



Feb 12 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1403
by: Martin! | last post by:
hi all, yesterday i checked some of my sites with safari on a mac with os x and saw that some things didnt show up as they do in IE and FF. these things include a css_roll_menu and a suckerfish menu. i noticed that not all roll_menus and suckerfish menus appear corrupted in safari (only mine :( ). on the same system i checked the same sites with mozille 1.6 and all appear correct. if i remember correctly safari is based on the KDE...
5
2457
by: Foreman | last post by:
Using ASPFileUpload (http://support.microsoft.com/default.aspx?scid=kb;en-us;299692) and works for IE6 and FireFox but not Safari. Thanks in advance for your assistance.
2
1946
by: laredotornado | last post by:
Hi, Is it possible to fool Javascript running on a Mac Safari web browser into believing it is a PC IE browser? We have the following JS code that is detecting both Mac and Safari. Sadly, we do not have control over the code. // Global variables for platform branching var NN, IE, MAC, browserVersion
4
2734
by: Paul W | last post by:
Hi - can someone point me to info on the issues/resolutions of supporting the safari browser? To help me understand, if I was developing pages in say FrontPage, what attributes would I set for 'target browser'? I'm having a helluva time with table layouts etc and goin' stir crazy.. Thanks, Paul.
2
3392
by: JThomas | last post by:
Hello! I'm having trouble with a page apparently causing my client's Safari browser to time out. I don't actually have access to a Mac & Safari, and haven't been able to physically see this duplicated, but this is the descrip of the problem: >From Client's Point of View: 1. Client, using Safari, fills out a form on one page, submits (POST). 2. Timeout - never sent to next page (submit button is working, but
34
3890
by: Simon Wigzell | last post by:
document...focus() will scroll the form to move the specified text field into view on everything I have tried it with except Safari on the MAC. The form doesn't move. Any work around? Thanks.
21
4448
by: Edward | last post by:
Hi All, I feel frustrated with one of my Customers who wants me to ensure that a dotnet web site I am building for them must be compatible to Apple's Safari browser! Safari is buggy and it does not support lots of things (xhtml etcc). However, what puzzles me is that there are some dotnet Framework 2 web sites out there that work perfectly well under Safari, whereas my website does not
16
2525
by: Edward | last post by:
Hi All, I am having huge problems with a very simple dotnet framework web page (www.gbab.net/ztest3.aspx) , it does NOT render correctly under Apple's Safari. The DIV's do not align amd float as they should, and do in Dotnet. The page is really, really simple, and it has a CSS and with NO masterpage. I have tried using the following as recommendations made earlier in this Newsgroup:-
7
5229
by: David Stone | last post by:
Run into something recently that has left me a little puzzled. According to the examples in section 13.6.1 of html 4.01... <http://www.w3.org/TR/html401/struct/objects.html#h-13.6.1.1> I should be able to use <aelements with a specified shape and coords within a <mapso that I can use the links with an actual image and, at the same time, have the links appear as text. Something like the map associated with
0
9892
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9734
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10718
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7888
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5725
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5915
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4129
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.