Dynamic content w/ jQuery
<p>I am just starting to learn jQuery, and want to load content from a seperate .aspx page dynamically into a div. Using example from here: <a href="http://www.asp.net/ajaxLibrary/jquery_webforms_dynamic_load.ashx?HL=var" rel="nofollow">http://www.asp.net/ajaxLibrary/jquery_webforms_dynamic_load.ashx?HL=var</a>.</p>

<p>However it doesn't seem to be responding and I'm probably missing some piece of this. Here is the code / script in my .aspx page: </p>

<pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"&gt;
&lt;script src="Scripts/jquery-1.5.js" type="text/javascript"&gt;&lt;/script&gt;       
&lt;script type="text/javascript"&gt;

$(document).ready(function () {
    // External ASPX Page calling   
    $("#btn_Submit").click(loadDynamic);
});

function loadDynamic() {

    $("#dynamicResults").load("ResultsView.aspx", 
        {name: $("#cbox_User").val() },  
        function (content) {   
           $(this).hide().fadeIn("slow");
                return false;
        });
}  
</code></pre>

<p>

    
    
    </p>

<pre><code>&lt;Header&gt;
QUERY VIEW
&lt;/Header&gt;

&lt;Content&gt;
    &lt;div style="float:right; height:154px; width: 947px; margin-left: 0px; background-color: #E0E0E0;"&gt;
        &lt;br /&gt;
        &lt;asp:Label ID="Label2" runat="server" Text="Select a User:" 
                    Style="margin-left:28px" &gt;&lt;/asp:Label&gt;

                    &lt;asp:ComboBox ID="cbox_User" runat="server" AutoCompleteMode="SuggestAppend"&gt;
                    &lt;/asp:ComboBox&gt;

                &lt;asp:Label ID="Label3" runat="server" Text="Select a Month:" 
                                Style="margin-left:28px" &gt;&lt;/asp:Label&gt;
            &lt;asp:TextBox ID="txt_Date" runat="server"&gt;&lt;/asp:TextBox&gt;
                &lt;asp:CalendarExtender ID="CalendarExtender1" runat="server" 
                            TargetControlID="txt_Date" 
                            Format="MMMM yyyy" 
                            OnClientShown="onCalendarShown"
                            OnClientHidden="onCalendarHidden"
                            BehaviorID="calendar1" &gt;
                &lt;/asp:CalendarExtender&gt;
                &lt;asp:Button ID="btn_Submit" runat="server" Text="Submit" Style="margin-left:28px" onclick="Btn_Submit_Click" /&gt;
&lt;/div&gt;
&lt;/Content&gt;


&lt;Header&gt;
RESULTS VIEW
&lt;/Header&gt;

&lt;Content&gt;
    &lt;div id="dynamicResults"&gt;
    &lt;/div&gt;
    &lt;div style="border-style: none; height:340px; width: 770px; position:relative; top: 10px; left: -2px;"&gt;
     &lt;asp:GridView ID="ResultsView" runat="server" CellPadding="3" 
         ForeColor="Black" GridLines="None" AllowPaging="False" 
         Visible="False" 
         Height="318px" style="margin-left: 32px; margin-top: 2px;" Width="718px" 
         BackColor="White" BorderColor="#999999" BorderStyle="Solid" 
         BorderWidth="1px"&gt;
        &lt;/asp:GridView&gt;
     &lt;/div&gt;
&lt;/Content&gt;
</code></pre>

<p>And in the second .aspx page, which contains I a div I just want to dynamically load: </p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
   &lt;div style="background-color:#E0E0E0; border-style: ridge none none none; border-        width: thin; border-color: #B3B3B3; height:120px; width: 770px;  position:relative;     top: 10px; left: 8px;"&gt;
          &lt;asp:Label ID="lbl_Header" runat="server" Text="User  Information:"&gt;&lt;/asp:Label&gt;
   &lt;/div&gt; 
 &lt;/html&gt;
</code></pre>
