Oct 25, 2010, 7:03 AM
The control with ID 'PagingTest1_Store2' not found
Hello,
i searched the forum for a similar problem but could not find something what fits, so might
someone can point me in the right direction.
I create a new Windows with a Control like this:
The Control looks like this:
[HttpException (0x80004005): The control with ID 'PagingTest1_Store2' not found]
Ext.Net.ResourceManager.RaisePostBackEvent(String eventArgument) +1629
Ext.Net.ResourceManager.Page_AjaxLoadComplete(Obje ct sender, EventArgs e) +259
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnLoadComplete(EventArgs e) +8701398
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +735
i searched the forum for a similar problem but could not find something what fits, so might
someone can point me in the right direction.
I create a new Windows with a Control like this:
protected void btnPagingTest1_Click(object sender, DirectEventArgs e)
{
Window win = new Window
{
ID = "windowPagingTest1",
Title = "Paging Test 1",
Height = 600,
Width = 800,
Padding = 5
};
baseUserControl userControlPaging = (baseUserControl)LoadControl("~/Views/PagingTest1.ascx");
userControlPaging.ID = "PagingTest1";
win.ContentContainer.Controls.Add(userControlPaging);
win.Render();
}
The Control looks like this:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PagingTest1.ascx.cs"
Inherits="Web.Views.PagingTest1" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:Store ID="Store2" runat="server" OnRefreshData="Store2_RefreshData">
<Proxy>
<ext:PageProxy />
</Proxy>
<Reader>
<ext:JsonReader IDProperty="Id">
<Fields>
<ext:RecordField Name="Id" Type="String" />
<ext:RecordField Name="Firstname" Type="String" />
<ext:RecordField Name="Lastname" Type="String" />
</Fields>
</ext:JsonReader>
</Reader>
<BaseParams>
<ext:Parameter Name="start" Value="0" Mode="Raw" />
<ext:Parameter Name="limit" Value="100" Mode="Raw" />
<ext:Parameter Name="sort" Value="" />
<ext:Parameter Name="dir" Value="" />
</BaseParams>
</ext:Store>
<ext:GridPanel ID="GridPanel2" runat="server" Border="false">
<ColumnModel ID="ColumnModel2" runat="server">
<Columns>
<ext:Column Header="Id" DataIndex="Id" />
<ext:Column Header="First name" DataIndex="Firstname" />
<ext:Column Header="Last name" DataIndex="Lastname" />
</Columns>
</ColumnModel>
<LoadMask ShowMask="true" />
<BottomBar>
<ext:PagingToolbar ID="PagingToolbar2" runat="server" PageSize="100" />
</BottomBar>
</ext:GridPanel>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ext.Net;
namespace Web.Views
{
public partial class PagingTest1 : baseUserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Store2_RefreshData(object sender, StoreRefreshDataEventArgs e)
{
}
}
}
As long the <Proxy><ext:PageProxy /></Proxy> in the Store exists, I always get the error[HttpException (0x80004005): The control with ID 'PagingTest1_Store2' not found]
Ext.Net.ResourceManager.RaisePostBackEvent(String eventArgument) +1629
Ext.Net.ResourceManager.Page_AjaxLoadComplete(Obje ct sender, EventArgs e) +259
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnLoadComplete(EventArgs e) +8701398
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +735