Friday, March 11, 2011

asp menu didn't work properly in google chrome

asp menu do not work properly with google crome and Safari . To solve this problem u can put the following function before the page load function in .cs page. the function is

protected override void AddedControl(Control control, int index)
    {
        if (Request.ServerVariables["http_user_agent"].IndexOf("Safari", StringComparison.CurrentCultureIgnoreCase) != -1)
            this.Page.ClientTarget = "uplevel";

        base.AddedControl(control, index);
    }


Thanks

No comments:

Post a Comment

Total Pageviews