T
trullock
Hi,
Ive installed the ASP.NET AJAX extensions and ive set up a simple
example, however its not doing anything asynchronously, its always
posting back...
Could this be something to do with the fact ive added it to an
existing project not an "asp.net ajax enabled project"?
If so, whats the difference and how do i make my existing project the
same as an ajax enabled one?
Heres the code:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Literal runat="server" ID="lit_test" />
<asp:LinkButton runat="server" ID="btn_Test"
OnClick="btn_Test_Click">Test</asp:LinkButton>
</ContentTemplate>
</asp:UpdatePanel>
void btn_Test_Click(object sender, EventArgs e)
{
lit_test.Text = "will i appear via postback or not??";
}
Thanks
Andrew
Ive installed the ASP.NET AJAX extensions and ive set up a simple
example, however its not doing anything asynchronously, its always
posting back...
Could this be something to do with the fact ive added it to an
existing project not an "asp.net ajax enabled project"?
If so, whats the difference and how do i make my existing project the
same as an ajax enabled one?
Heres the code:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Literal runat="server" ID="lit_test" />
<asp:LinkButton runat="server" ID="btn_Test"
OnClick="btn_Test_Click">Test</asp:LinkButton>
</ContentTemplate>
</asp:UpdatePanel>
void btn_Test_Click(object sender, EventArgs e)
{
lit_test.Text = "will i appear via postback or not??";
}
Thanks
Andrew