473,416 Members | 1,536 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,416 software developers and data experts.

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\Microsoft.NET\Framework\v2.0.50727\CONF IG\Browsers

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 2592
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*************@TK2MSFTNGP10.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\Microsoft.NET\Framework\v2.0.50727\CONF IG\Browsers

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_spaces.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****************@TK2MSFTNGP09.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*************@TK2MSFTNGP10.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\Microsoft.NET\Framework\v2.0.50727\CONF IG\Browsers

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****************@TK2MSFTNGP09.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*************@TK2MSFTNGP10.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\Microsoft.NET\Framework\v2.0.50727\CONF IG\Browsers

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**************@TK2MSFTNGP12.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_spaces.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****************@TK2MSFTNGP09.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*************@TK2MSFTNGP10.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\Microsoft.NET\Framework\v2.0.50727\CONF IG\Browsers

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 "AppleWebKit" 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**************@tk2msftngp13.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****************@TK2MSFTNGP09.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*************@TK2MSFTNGP10.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\Microsoft.NET\Framework\v2.0.50727\CONF IG\Browsers

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
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...
5
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
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...
4
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...
2
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...
34
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
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...
16
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...
7
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.