Hi,
I want AJAX - enable existing content ASP .NET page. After updating web.config all seemed OK. But ...
I'm still getting full postback even on this simple testing page:
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
<asp:UpdatePanel ID="upd1" runat="server">
<ContentTemplate>
<asp:Button ID="Button1" runat="server" Text="Button" /><br />
<asp:Label ID="Label1" runat="server" Text="Label"><%# DateTime.Now.ToString()%></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
As you guess ScriptManager is on master page and I left its properties default.
Any idea what am I missing?
You are missing your triggers!!!!
<triggers>
<asp:AsyncPostBackTrigger controlID="NameofYouControl" EventName="NameofEventThat triggers refresh"> </<asp:AsyncPostBackTrigger>
</triggers>
You are missing your triggers!!!!
<triggers>
<asp:AsyncPostBackTrigger controlID="NameofYouControl" EventName="NameofEventThat triggers refresh"> </<asp:AsyncPostBackTrigger>
</triggers>
<triggers></triggers> goes after <ContentTemplate></ContentTemplate>
Triggers shouldn't be needed in that example... There must be something wrong with the web.config, other code on the page, or possibly a configuration issue in IIS.
i would say it's the web.config issue.
No comments:
Post a Comment