Hi - I'm making a simple page to test DynamicPopulateExtender. Below is my markup. No errors are reported, no exceptions, nothing. Nothing happens to the label field. The web service does not get called. Also tried using a page method. Nothing.
VS2015, latest ACT downloaded. Any clues?
Thanks
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<p>
<asp:CheckBox ID="CheckBox1" runat="server" Text="Do Heavy Calc" OnCheckedChanged="CheckBox1_CheckedChanged" AutoPostBack="true" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<ajaxToolkit:DynamicPopulateExtender ID="DynamicPopulateExtender1" runat="server" ClearContentsDuringUpdate="false"
TargetControlID="Label1" ServiceMethod="GetSlowThing" ServicePath="~/Services/WebService1.asmx" />
</p>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataKeyNames="Id" ItemType="WebApplication2015.DAL.Table1" Width="100%" SelectMethod="GridView1_GetDataAsync"
AllowPaging="True" PageSize="5" AllowSorting="True">
<Columns>
<asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" />
<asp:BoundField DataField="FieldOne" HeaderText="Field One" SortExpression="FieldOne" />
<asp:BoundField DataField="FieldTwo" HeaderText="Field Two" SortExpression="FieldTwo" />
<asp:TemplateField HeaderText="Field Three">
<ItemTemplate>
<asp:TextBox ID="TB1" runat="server" Text="Empty"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</asp:Content>
Comments: Also, I don't seem to be able to get the extender to populate from the code behind. Whenever I try the code behind method (leaving out ServicePath), the target control get loaded with the html of the entire page (starting with <!DOCTYPE html>). Very strange. The generated javascript at the bottom of the page looks like Sys.Application.add_init(function() { $create(Sys.Extended.UI.DynamicPopulateBehavior, {"contextKey":"1","id":"MainContent_GridView1_DynamicPopulateExtender1_0","populateTriggerID":"MainContent_GridView1_TB1_0","serviceMethod":"GetSlowThing","servicePath":"/Contact"}, null, null, $get("MainContent_GridView1_TB1_0")); }); where "Contact" is the name of the aspx page and "GetSlowThing" is the method (takes and returns a string). Like I said, the asmx web service works OK. Thanks
VS2015, latest ACT downloaded. Any clues?
Thanks
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<p>
<asp:CheckBox ID="CheckBox1" runat="server" Text="Do Heavy Calc" OnCheckedChanged="CheckBox1_CheckedChanged" AutoPostBack="true" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<ajaxToolkit:DynamicPopulateExtender ID="DynamicPopulateExtender1" runat="server" ClearContentsDuringUpdate="false"
TargetControlID="Label1" ServiceMethod="GetSlowThing" ServicePath="~/Services/WebService1.asmx" />
</p>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataKeyNames="Id" ItemType="WebApplication2015.DAL.Table1" Width="100%" SelectMethod="GridView1_GetDataAsync"
AllowPaging="True" PageSize="5" AllowSorting="True">
<Columns>
<asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" />
<asp:BoundField DataField="FieldOne" HeaderText="Field One" SortExpression="FieldOne" />
<asp:BoundField DataField="FieldTwo" HeaderText="Field Two" SortExpression="FieldTwo" />
<asp:TemplateField HeaderText="Field Three">
<ItemTemplate>
<asp:TextBox ID="TB1" runat="server" Text="Empty"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</asp:Content>
Comments: Also, I don't seem to be able to get the extender to populate from the code behind. Whenever I try the code behind method (leaving out ServicePath), the target control get loaded with the html of the entire page (starting with <!DOCTYPE html>). Very strange. The generated javascript at the bottom of the page looks like Sys.Application.add_init(function() { $create(Sys.Extended.UI.DynamicPopulateBehavior, {"contextKey":"1","id":"MainContent_GridView1_DynamicPopulateExtender1_0","populateTriggerID":"MainContent_GridView1_TB1_0","serviceMethod":"GetSlowThing","servicePath":"/Contact"}, null, null, $get("MainContent_GridView1_TB1_0")); }); where "Contact" is the name of the aspx page and "GetSlowThing" is the method (takes and returns a string). Like I said, the asmx web service works OK. Thanks