Feb 20, 2010, 1:53 PM
[CLOSED] Failed to load viewstate
I get this error when I select item from the dropdown. I breaks before to go to the code behind
Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
HttpException (0x80004005): Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.]
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +303
System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +218
System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +218
System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +218
System.Web.UI.Page.LoadAllState() +312
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1661
<ext:Store ID="findJobs" runat="server">
<Proxy>
<ext:HttpProxy Method="POST" Url="~/FindJobs.ashx" />
</Proxy>
<Reader>
<ext:JsonReader Root="Jobs" TotalProperty="totalCount">
<Fields>
<ext:RecordField Name="JobID" />
<ext:RecordField Name="SapJobID" />
<ext:RecordField Name="JobTitle" />
<ext:RecordField Name="Band" />
<ext:RecordField Name="IsActive" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<div >
<div class="x-box-tl"><div class="x-box-tr"><div class="x-box-tc">
<div class="x-box-ml"><div class="x-box-mr"><div class="x-box-mc">
<ext:ComboBox ID="cmbFindJobs" runat="server" AllowBlank="false"
TypeAhead="false" EmptyText="Type job title or job id...."
StoreID="findJobs"
DisplayField="JobTitle"
ValueField="JobID"
LoadingText="Searching....."
Width="650" PageSize="10" HideTrigger="true" ItemSelector="div.search-item" MinChars="3"
>
<DirectEvents>
<Select OnEvent="GetJobdetails">
<EventMask ShowMask="true" />
</Select>
</DirectEvents>
<Template ID="Template1" runat="server">
<Html>
<tpl for=".">
<div class="search-item">
<h3>{IsActive} {Band}{SapJobID} {JobTitle}</h3>
</tpl>
</Html>
</Template>
</ext:ComboBox>
<div class="x-box-bl"><div class="x-box-br"><div class="x-box-bc">