I wrapped most of the content in my master page in an update panel so the page won't flicker but for some reason it actually is causing even more flicker. lol
Is there a better way to accomplish this and am I even doing this correctly?
This is the markup for my master page. It is very similar to how you have it in the book.
HTML Code:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" >
<ContentTemplate>
<div id="MenuWrapper">
<asp:Menu ID="Menu1" CssClass="MainMenu" runat="server"
DataSourceID="SiteMapDataSource1" Orientation="Horizontal"
StaticEnableDefaultPopOutImage="False">
</asp:Menu>
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1"
ShowExpandCollapse="False">
<LevelStyles>
<asp:TreeNodeStyle CssClass="FirstLevelMenuItems" />
</LevelStyles>
</asp:TreeView>
</div>
<div id="Breadcrumbs"> <asp:SiteMapPath ID="SiteMapPath1" runat="server"></asp:SiteMapPath>
<br /> <br /> <br />
</div>
<div id="ExtraContent">
Put something neat here
<cc1:Editor ID="Editor1" runat="server" />
<ajaxToolkit:Twitter ID="Twitter1" Visible="false"
Mode="Profile"
ScreenName=""
runat="server" />
</div>
<div id="Sidebar">
Select a Theme<br />
<asp:DropDownList ID="ThemeList" runat="server" AutoPostBack="True"
onselectedindexchanged="ThemeList_SelectedIndexChanged" Width="105px">
<asp:ListItem>Default</asp:ListItem>
<asp:ListItem>Midnight</asp:ListItem>
<asp:ListItem>DarkGrey</asp:ListItem>
</asp:DropDownList>
<br />
<UFC:Banner ID="Banner1" runat="server" DisplayDirection="Vertical"></UFC:Banner>
<br />
<br />
</div>
<div id="MainContent">
<!-- Main Content Place Holder -->
<asp:ContentPlaceHolder id="cpMainContent" runat="server">
</asp:ContentPlaceHolder>
</div>
</ContentTemplate>
</asp:UpdatePanel>