A
Alex. O. Koranteng
I am getting the following error mesage from the label control on my aspx
files.
Error creating control:labeid not specified and here is the code below
I have two grids. The first grid shows a gridview with no ajax
functionality. The second grid shows ajax functionality. Any suggestions will
be appreciated. IF you need more info, I will send you a zipped file of the
solution.
<body>
<form id="frm" runat="server" >
<div style="margin-left:35px">
<asp:ScriptManager ID="scriptManager" runat="server" />
<asp:SqlDataSource
ID="sqldsCustomers" runat="server"
SelectCommand="select customerid, companyname, contactname,
contacttitle from dbo.[customers]"
SelectCommandType="Text"
ConnectionString="todo"
CancelSelectOnNullParameter="true" />
<p style="background-color:AliceBlue; width:95%">
Example of two customer GridViews, the top one is not ajax enabled
and sort or paging will cause the entire page to refresh. The bottom
GridView is ajax enabled and does not cause the complete page to rerender<br
/>
</p>
<asp:Label runat="server" Text="Customers - No AJAX"
BackColor="lightblue" Width="95%" />
<asp:GridView id="gvCustomersNoAJAX" runat="server"
DataSourceID="sqldsCustomers" AutoGenerateColumns="true" AllowPaging="true"
AllowSorting="true" PageSize="5" Width="95%">
<AlternatingRowStyle BackColor="aliceBlue" />
<HeaderStyle HorizontalAlign="Left" />
</asp:GridView>
<br />
<asp:UpdatePanel ID="updatePanel" runat="server"
UpdateMode="Conditional">
<ContentTemplate>
<asp:Label runat="server" Text="Customers - With AJAX"
BackColor="lightblue" Width="95%" />
<asp:GridView id="gvCustomersWithAJAX" runat="server"
DataSourceID="sqldsCustomers"
AutoGenerateColumns="true" AllowPaging="true"
AllowSorting="true" PageSize="5" Width="95%">
<AlternatingRowStyle BackColor="aliceBlue" />
<HeaderStyle HorizontalAlign="Left" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
<ajaxToolkit:UpdatePanelAnimationExtender ID="upae"
BehaviorID="animation" runat="server" TargetControlID="updatePanel">
<Animations>
<OnUpdating>
<Parallel duration="0">
<ScriptAction Script="onUpdating();" />
</Parallel>
</OnUpdating>
<OnUpdated>
<Parallel duration="0">
<ScriptAction Script="onUpdated();" />
</Parallel>
</OnUpdated>
</Animations>
</ajaxToolkit:UpdatePanelAnimationExtender>
<div id="updateProgressDiv" style="background-color:#CF4342;
display:none; position:absolute;">
<span style="color:#fff; margin:3px">Loading ...</span>
</div>
</div>
</form>
</body>
</html>
Thanks
Alex
files.
Error creating control:labeid not specified and here is the code below
I have two grids. The first grid shows a gridview with no ajax
functionality. The second grid shows ajax functionality. Any suggestions will
be appreciated. IF you need more info, I will send you a zipped file of the
solution.
<body>
<form id="frm" runat="server" >
<div style="margin-left:35px">
<asp:ScriptManager ID="scriptManager" runat="server" />
<asp:SqlDataSource
ID="sqldsCustomers" runat="server"
SelectCommand="select customerid, companyname, contactname,
contacttitle from dbo.[customers]"
SelectCommandType="Text"
ConnectionString="todo"
CancelSelectOnNullParameter="true" />
<p style="background-color:AliceBlue; width:95%">
Example of two customer GridViews, the top one is not ajax enabled
and sort or paging will cause the entire page to refresh. The bottom
GridView is ajax enabled and does not cause the complete page to rerender<br
/>
</p>
<asp:Label runat="server" Text="Customers - No AJAX"
BackColor="lightblue" Width="95%" />
<asp:GridView id="gvCustomersNoAJAX" runat="server"
DataSourceID="sqldsCustomers" AutoGenerateColumns="true" AllowPaging="true"
AllowSorting="true" PageSize="5" Width="95%">
<AlternatingRowStyle BackColor="aliceBlue" />
<HeaderStyle HorizontalAlign="Left" />
</asp:GridView>
<br />
<asp:UpdatePanel ID="updatePanel" runat="server"
UpdateMode="Conditional">
<ContentTemplate>
<asp:Label runat="server" Text="Customers - With AJAX"
BackColor="lightblue" Width="95%" />
<asp:GridView id="gvCustomersWithAJAX" runat="server"
DataSourceID="sqldsCustomers"
AutoGenerateColumns="true" AllowPaging="true"
AllowSorting="true" PageSize="5" Width="95%">
<AlternatingRowStyle BackColor="aliceBlue" />
<HeaderStyle HorizontalAlign="Left" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
<ajaxToolkit:UpdatePanelAnimationExtender ID="upae"
BehaviorID="animation" runat="server" TargetControlID="updatePanel">
<Animations>
<OnUpdating>
<Parallel duration="0">
<ScriptAction Script="onUpdating();" />
</Parallel>
</OnUpdating>
<OnUpdated>
<Parallel duration="0">
<ScriptAction Script="onUpdated();" />
</Parallel>
</OnUpdated>
</Animations>
</ajaxToolkit:UpdatePanelAnimationExtender>
<div id="updateProgressDiv" style="background-color:#CF4342;
display:none; position:absolute;">
<span style="color:#fff; margin:3px">Loading ...</span>
</div>
</div>
</form>
</body>
</html>
Thanks
Alex