Menu issues in Chrome

Topics: User Forum
Mar 19, 2011 at 12:46 AM

I have noticed that when viewing my page in Chrome and using any page that uses a postback function (photo gallery, news feed, etc.) it messes up the menu. It works fine in IE, but Chrome is my primary browser. I can work around it, but it's somewhat annoying. 

Anyone else run into this issue?

Chrome users can test this at www.michaelbitton.com 

TIA

Mar 19, 2011 at 2:15 AM

Found it - for anyone else having this issue, reference this page:

http://mywebpagesstarterkit.codeplex.com/workitem/18449

The short solution is to modify Site.Master.cs and add the following code. I added mine directly before the last } and it works great.

protected override void OnInit(EventArgs e)
{
base.OnInit(e);
// next line crashes 
string j = Page.Request.ServerVariables["http_user_agent"].ToLower();
if (j.Contains("safari") | j.Contains("chrome"))
{
Page.ClientTarget = "uplevel";
}
} 

Mar 19, 2011 at 10:50 AM

יש לך בעיות אבטחה חמורות

Mar 19, 2011 at 11:32 AM
ronen22 wrote:

יש לך בעיות אבטחה חמורות

 

אילו בעיות אבטחה?

Mar 19, 2011 at 3:55 PM
Edited Mar 19, 2011 at 3:56 PM

lol

how can u understand that?

anyway i will tell michael in privet