/dev/null [tony lombardo]

Anything and everything ASP.NET and more. Expect to see tips and tricks, opinions on new technology, and fun code samples, along with the occasional rant.
Disappearing Styles with Atlas - Fixed in June CTP
I was extremely happy to see that in the Atlas June CTP the mystery of disappearing styles has been solved. Well, for the most part at least. It appears that style information is now preserved even after the UpdatePanel is refreshed, however there is an issue with the first or last control still losing its style information. If you are running into odd behavior with only one control losing styling after a postback in the UpdatePanel, try adding a dummy style tag directly after the UpdatePanel. My tests showed that the following works like a charm -

< atlas : UpdatePanel ID ="UP1" runat ="server">
< ContentTemplate >
< igtab : UltraWebTab ID ="UltraWebTab1" runat ="server" BorderColor ="#0056D7" BorderStyle ="Solid" BorderWidth ="1px" ThreeDEffect ="False">
< Tabs >
< igtab : Tab Text ="tab1"></ igtab : Tab >
  </ Tabs >
< DefaultTabStyle BackColor ="#E1EDFF" Height ="20px">
</ DefaultTabStyle >
  < RoundedImage FillStyle ="LeftMergedWithCenter" NormalImage ="ig_tab_blueb1.gif" SelectedImage ="ig_tab_blueb2.gif" />
</ igtab : UltraWebTab >
< asp : Button ID ="Button1" runat ="server" Text ="Button" />
</ ContentTemplate >
</ atlas : UpdatePanel >
< style type ='text/css'></ style >


Hope this helps!
-Tony
Posted: 18 Jul 2006, 10:59
Filed under:

Comments

Mike said:

Cannot thank you enough for your empty style tag tip. This bug has been driving me nuts for days!
# August 8, 2006 4:43 PM

Tony Lombardo said:

Glad I could help Mike!
# August 8, 2006 5:12 PM

Tim Cartwright said:

Thank you VERY VERY much. I use the ultrawebmenu, and I was about to pull my hair out when it kept losing its styles.
# September 4, 2006 7:12 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS