Link to home
Start Free TrialLog in
Avatar of vamail2
vamail2

asked on

ASP.NET UpdatePanel, asp:Wizard control and Safari not working

I have an asp:Wizard control surounded by an UpdatePanel.  Only in the safari browser - I see that after the first step, the wizard fails to paint the next next page. When I debug the code everything is normal the problem is the the next wizard step doesnt get rendered and the screen appears to stay on the prior step.

I can't believe Safari doesn't support Ajax very well.. Thanks for any tips or workaorunds
Avatar of masterpass
masterpass
Flag of India image

Have this inside a js file, say SafariFix.js

and in your aspx page , make some modification

SafariFix.js 
--------------------
Sys.Browser.WebKit = {}; //Safari 3 is considered WebKit
if( navigator.userAgent.indexOf( 'WebKit/' ) > -1 )
{
  Sys.Browser.agent = Sys.Browser.WebKit;
  Sys.Browser.version = parseFloat( navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]);
  Sys.Browser.name = 'WebKit';
}

aspx
-----------
<asp:ScriptManager>
<Scripts>
<asp:ScriptReference Path="~/SafariFix.js" />
</Scripts>
</asp:ScriptManager>

Open in new window

Avatar of vamail2
vamail2

ASKER

Thanks.  I tried this.  Now the only problem is teh website is twice as slow to render... argghhh..

Thanks though
ASKER CERTIFIED SOLUTION
Avatar of masterpass
masterpass
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial