Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Menu Control That Works With Safari

0 views
Skip to first unread message

AG

unread,
Apr 28, 2008, 2:21:48 PM4/28/08
to
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


Cowboy (Gregory A. Beamer)

unread,
Apr 28, 2008, 2:26:01 PM4/28/08
to
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" <NOSPAM...@newsgroup.nospam> wrote in message
news:e9AeyyVq...@TK2MSFTNGP03.phx.gbl...

Mark Rae [MVP]

unread,
Apr 28, 2008, 2:33:02 PM4/28/08
to
"AG" <NOSPAM...@newsgroup.nospam> wrote in message
news:e9AeyyVq...@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

AG

unread,
Apr 28, 2008, 3:50:13 PM4/28/08
to
Thanks Mark and Cowboy. Especially for the quick response.
I will try both solutions.

--

AG
Email: discussATadhdataDOTcom
"Mark Rae [MVP]" <ma...@markNOSPAMrae.net> wrote in message
news:ewSGM5Vq...@TK2MSFTNGP02.phx.gbl...

Jasy Moussa

unread,
May 26, 2008, 9:05:02 AM5/26/08
to
hii,
This Is was helpful & make the Menu appear but the sub menu of menu still
its width small
0 new messages