简体   繁体   中英

CSS removed for a while during page postback ASP.NET

I have faced a very strange issue in my application, at some places while a postback event occurs and page reload for a sec or two css will removed and html structure loads only then suddenly css applies.

This is random issue, it is not very long when css not appears but yes it is visible and affecting UI and customers experience. Please see below what happens for 1-2 secs (page without css) -

在此处输入图片说明

I am using ASP.NET web forms - 4.5, MSSQL Server as database, js and default Ajax controls provided in VS 2012.

Can anyone please share how to come out of this issue or any fixes to that.

I am preparing applications from last 5 years but this is first time I faced such kind of issue, please help, it will be highly appreciated.

convert your

<asp:ToolkitScriptManager ID="ScriptManager" runat="server" EnablePartialRendering="true">
    </asp:ToolkitScriptManager>

into

<asp:ToolkitScriptManager ID="ScriptManager" runat="server" EnablePartialRendering="false">
    </asp:ToolkitScriptManager>

You got solution

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM