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

Menu Control That Works With Safari

AG
Using ASP.NET 3.5
I have been using a standard menu control bound to a sitemapdatasource using
a web.sitemap file.
The menus work fine in IE and Firefox, but in Safari, they render horribly
and dynamic menus don't work at all.

I found a post indicating that rendering can be improved by modifying
browserCaps, but not the dynamic functionality.
A search finds many third party menu controls. Most of which utilize their
own xml file source.
Can anyone recommend a menu control that works with roles and will bind to a
sitemapdatasource?

Thanks,
--

AG
Email: discussATadhdataDOTcom
Jun 27 '08 #1
4 1794
Try the CSS Friendly Adapters from www.asp.net and apply CSS to the menu.
You then have complete control. That is how I set up menus that work fine on
IE, Firefox, Opera and Safari.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"AG" <NO**********@newsgroup.nospamwrote in message
news:e9**************@TK2MSFTNGP03.phx.gbl...
Using ASP.NET 3.5
I have been using a standard menu control bound to a sitemapdatasource
using a web.sitemap file.
The menus work fine in IE and Firefox, but in Safari, they render horribly
and dynamic menus don't work at all.

I found a post indicating that rendering can be improved by modifying
browserCaps, but not the dynamic functionality.
A search finds many third party menu controls. Most of which utilize their
own xml file source.
Can anyone recommend a menu control that works with roles and will bind to
a sitemapdatasource?

Thanks,
--

AG
Email: discussATadhdataDOTcom

Jun 27 '08 #2
"AG" <NO**********@newsgroup.nospamwrote in message
news:e9**************@TK2MSFTNGP03.phx.gbl...
Using ASP.NET 3.5
I have been using a standard menu control bound to a sitemapdatasource
using a web.sitemap file.
The menus work fine in IE and Firefox, but in Safari, they render horribly
and dynamic menus don't work at all.
1) Create a new class as follows:

public class CBaseMasterEvents : Page
{
public CBaseMasterEvents()
{
PreInit += new EventHandler(CBaseMaster_PreInit);
}

private void CBaseMaster_PreInit(object sender, EventArgs e)
{
if (Request.Browser.Browser.Contains("Safari"))
{
ClientTarget = "uplevel";
}
}
}

2) Modify the aspx pages' partial class so that they inherit from
CBaseMasterEvents instead of System.Web.UI.Page
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #3
AG
Thanks Mark and Cowboy. Especially for the quick response.
I will try both solutions.

--

AG
Email: discussATadhdataDOTcom
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:ew**************@TK2MSFTNGP02.phx.gbl...
"AG" <NO**********@newsgroup.nospamwrote in message
news:e9**************@TK2MSFTNGP03.phx.gbl...
>Using ASP.NET 3.5
I have been using a standard menu control bound to a sitemapdatasource
using a web.sitemap file.
The menus work fine in IE and Firefox, but in Safari, they render
horribly and dynamic menus don't work at all.

1) Create a new class as follows:

public class CBaseMasterEvents : Page
{
public CBaseMasterEvents()
{
PreInit += new EventHandler(CBaseMaster_PreInit);
}

private void CBaseMaster_PreInit(object sender, EventArgs e)
{
if (Request.Browser.Browser.Contains("Safari"))
{
ClientTarget = "uplevel";
}
}
}

2) Modify the aspx pages' partial class so that they inherit from
CBaseMasterEvents instead of System.Web.UI.Page
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #4
hii,
This Is was helpful & make the Menu appear but the sub menu of menu still
its width small

"AG" wrote:
Thanks Mark and Cowboy. Especially for the quick response.
I will try both solutions.

--

AG
Email: discussATadhdataDOTcom
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:ew**************@TK2MSFTNGP02.phx.gbl...
"AG" <NO**********@newsgroup.nospamwrote in message
news:e9**************@TK2MSFTNGP03.phx.gbl...
Using ASP.NET 3.5
I have been using a standard menu control bound to a sitemapdatasource
using a web.sitemap file.
The menus work fine in IE and Firefox, but in Safari, they render
horribly and dynamic menus don't work at all.
1) Create a new class as follows:

public class CBaseMasterEvents : Page
{
public CBaseMasterEvents()
{
PreInit += new EventHandler(CBaseMaster_PreInit);
}

private void CBaseMaster_PreInit(object sender, EventArgs e)
{
if (Request.Browser.Browser.Contains("Safari"))
{
ClientTarget = "uplevel";
}
}
}

2) Modify the aspx pages' partial class so that they inherit from
CBaseMasterEvents instead of System.Web.UI.Page
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


Jun 27 '08 #5

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

Similar topics

4
by: Sandman | last post by:
Ok, so I've used the suggestion I got earlier. <div class="menu level0 haschildren active">Front page</div> .menu.level0.haschildren.active { ... } This doesn't work in IE, of course - so...
26
by: Thomas Mlynarczyk | last post by:
Hi, Could some kind person using Mac or Linux (or others) please take a look at http://www.mlynarczyk-webdesign.de/tmp/menu/menu.html and tell me if the page renders as it should (screenshot...
1
by: Micah N | last post by:
Greetings, I have not confirmed or seen this myself, but I have been told that the ASP.NET 2.0 Menu Control is not working properly under Mac OS on Safari 2.0.2 browsers. The issue described...
4
by: dpomt | last post by:
Hello, I am using the ASP.NET menu control and I have two issues when the page containing the menu is displayed in Safari on Mac OS X: 1) The menu is not dynamic. Why (it seems that Safari is...
5
by: dpomt | last post by:
When the ASP.NET menu is rendered on downlevel browers, the text "^ up one level" is displayed. Any ideas how I can change that text? I did not find a property for the menu control where I can...
1
by: Mark Rae | last post by:
Hi, Sorry for the repost - my ISP is having huge usenet problems at the moment... Following on with the problems of asp:Menu controls and Safari, I found the following article:...
3
by: töff | last post by:
On my site http://www.sjcga.com I have a javascript-generated navigation menu in the top right corner. The menu works great in IE and Opera ... but in FireFox, on the 1st click, the menu jumps...
8
by: windandwaves | last post by:
Hi Guys I need a bit of help with a fancy menu... http://www.sunnysideup.co.nz/j/menu I have two questions 1. it does not seem to work on Safari on a mac - what should I do?
5
by: Joey | last post by:
VS2008 C# Hey guys, something crazy is going on when I try to view my website with either Google Chrome or Apple Safari. For some reason the web server is sending extra markup to the site's...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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...

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.