Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to load content pages async using jQuery?
    primarykey
    data
    text
    <p>TGIF,</p> <p>I have a website I'm developing which is using ASP.NET masterpage/sitemap/content pages setup. I hate the "blinking" the site does when navigating between content pages using the asp:menu control. Any suggestions on how to use jQuery ajax instead of AJAX.NET updatepanels? I've used updatepanels in the past and I hate it; clunky and bloated.</p> <p>Here's the code:</p> <pre><code>&lt;%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %&gt; &lt;%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&gt; &lt;link href="styles/master.css" rel="stylesheet" type="text/css" /&gt; &lt;title&gt;Impeccable Construction Service&lt;/title&gt; &lt;asp:ContentPlaceHolder ID="head" runat="server"&gt; &lt;/asp:ContentPlaceHolder&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="form1" runat="server"&gt; &lt;cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"&gt; &lt;Scripts&gt; &lt;asp:ScriptReference Path="~/scripts/jquery-1.3.2.js" /&gt; &lt;/Scripts&gt; &lt;/cc1:ToolkitScriptManager&gt; &lt;div id="main"&gt; &lt;div class="header"&gt; &lt;asp:Image ID="HeaderLogo" runat="server" ImageUrl="images/header-logo.png" /&gt; &lt;asp:Image ID="SubHeader" runat="server" ImageUrl="images/sub-header.png" /&gt; &lt;/div&gt; &lt;div class="navbar"&gt; &lt;asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" /&gt; &lt;asp:Menu ID="NavMenu" runat="server" Orientation="Horizontal" DataSourceID="SiteMapDataSource1" StaticDisplayLevels="2" MaximumDynamicDisplayLevels="4" DynamicHorizontalOffset="1" StaticSubMenuIndent="1px" DynamicPopOutImageUrl="images/right-arrow.gif" StaticPopOutImageUrl="images/drop-arrow.gif" CssClass="NavMenu" Height="30px"&gt; &lt;StaticMenuItemStyle ItemSpacing="10" CssClass="staticMenuItemStyle" /&gt; &lt;StaticHoverStyle CssClass="staticHoverStyle" /&gt; &lt;StaticSelectedStyle CssClass="staticMenuItemSelectedStyle" /&gt; &lt;DynamicMenuItemStyle CssClass="dynamicMenuItemStyle" /&gt; &lt;DynamicHoverStyle CssClass="menuItemMouseOver" /&gt; &lt;DynamicMenuStyle CssClass="menuItem" /&gt; &lt;DynamicSelectedStyle CssClass="menuItemSelected" /&gt; &lt;DataBindings&gt; &lt;asp:MenuItemBinding DataMember="siteMapNode" NavigateUrlField="url" TextField="title" ToolTipField="description" /&gt; &lt;/DataBindings&gt; &lt;/asp:Menu&gt; &lt;asp:SiteMapPath ID="SiteMapPath1" runat="server" RenderCurrentNodeAsLink="true" PathSeparator=" &gt;&gt; " CssClass="currentNodeStyle"&gt; &lt;PathSeparatorStyle ForeColor="#5D7B9D" CssClass="currentNodeStyle" /&gt; &lt;CurrentNodeStyle ForeColor="#333333" CssClass="currentNodeStyle" /&gt; &lt;NodeStyle ForeColor="#7C6F57" CssClass="currentNodeStyle" /&gt; &lt;RootNodeStyle ForeColor="#5D7B9D" CssClass="currentNodeStyle" /&gt; &lt;/asp:SiteMapPath&gt; &lt;/div&gt; &lt;div id="content"&gt; &lt;asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"&gt; &lt;/asp:ContentPlaceHolder&gt; &lt;/div&gt; &lt;div class="footer"&gt; &lt;h4&gt; Rivera Design Studio &lt;/h4&gt; &lt;/div&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload