User controls inside an UpdatePanel - css styles are gone when updating (IE8)

后端 未结 4 1684
忘掉有多难
忘掉有多难 2021-01-19 14:58

I have an user control inside an UpdatePanel. Once an event is triggered and updates the user control - it seems to lose its css styles. This happened to me in IE8 only, whi

4条回答
  •  感动是毒
    2021-01-19 15:53

    I had similar problem.
    I solved it moving css from the to the

    .

    Since I use a MasterPage and I don't want the link in all pages, I found useful putting a ContentPlaceHolder in the MasterPage's Header

    
      ...
      
    
    

    and then the link inside the desired page:

    
        
     
    

提交回复
热议问题