Click here to Skip to main content
15,891,253 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: OnClientClick javascript parameter Pin
C#Coudou7-Nov-10 14:29
C#Coudou7-Nov-10 14:29 
Questionprint a page on windows mobile Pin
behzadcp4-Nov-10 7:15
professionalbehzadcp4-Nov-10 7:15 
AnswerRe: print a page on windows mobile Pin
NeverHeardOfMe4-Nov-10 7:36
NeverHeardOfMe4-Nov-10 7:36 
QuestionCan't see coded web performance test in VS 2010 Pin
jboyd1114-Nov-10 6:12
jboyd1114-Nov-10 6:12 
AnswerRe: Can't see coded web performance test in VS 2010 Pin
jboyd1114-Nov-10 6:36
jboyd1114-Nov-10 6:36 
GeneralRe: Can't see coded web performance test in VS 2010 Pin
NeverHeardOfMe4-Nov-10 6:46
NeverHeardOfMe4-Nov-10 6:46 
GeneralRe: Can't see coded web performance test in VS 2010 Pin
jboyd1114-Nov-10 9:41
jboyd1114-Nov-10 9:41 
QuestionViewstate Error Pin
treuveni4-Nov-10 1:23
treuveni4-Nov-10 1:23 
Hi,

I have form with 3 tabs,
i each one i have a grid.

My problem is - sometimes i'm getting this error when i'm pressing the EDIT button.
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.

At the first time nothing happens,
but at the second click i'm getting the above error

Can someone please please help me?

Thanks;
Tamir

Here is an example of one of the grids (i post only one column):

<asp:GridView ID="GridViewTransTab" runat="server" ShowFooter="True" AutoGenerateColumns="False"
                                    DataKeyNames="fName,main,startHour,endHour" OnDataBinding="GridViewTransTab_DataBinding"
                                    OnRowDataBound="GridViewTransTab_RowDataBound" OnRowCreated="GridViewTransTab_OnRowCreated"
                                    OnRowCancelingEdit="GridViewTransTab_RowCancelingEdit" OnRowCommand="GridViewTransTab_RowCommand"
                                    OnRowEditing="GridViewTransTab_RowEditing" OnRowUpdating="GridViewTransTab_RowUpdating"
                                    BackColor="#00CCFF" BorderWidth="2px" Font-Names="Arial" Font-Size="12pt" OnRowDeleting="GridViewTransTab_RowDeleting"
                                    EnableViewState="true">
                                    <RowStyle BorderWidth="2px" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="Full Name">
                                            <EditItemTemplate>
                                                <asp:DropDownList ID="txtFullNameTrans" runat="server" DataTextField="FullName" DataValueField="PersonId">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <FooterTemplate>
                                                <asp:DropDownList ID="txtFullNameNewTrans" runat="server" DataTextField="FullName" DataValueField="PersonId">
                                                </asp:DropDownList>
                                            </FooterTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblFullNameTrans" runat="server" Text='<%# Bind("fName") %>'></asp:Label></ItemTemplate>
                                        </asp:TemplateField>
<asp:TemplateField HeaderText="Edit" ShowHeader="False">
                                            <EditItemTemplate>
                                                <asp:LinkButton ID="lbkUpdateTrans" runat="server" CausesValidation="False" CommandName="Update"
                                                    Text="Update "></asp:LinkButton><asp:LinkButton ID="lnkCancelTrans" runat="server" CausesValidation="False"
                                                        CommandName="Cancel" Text="Cancel"></asp:LinkButton></EditItemTemplate>
                                            <FooterTemplate>
                                                <asp:LinkButton ID="lnkAddTrans" runat="server" CausesValidation="False" CommandName="Insert"
                                                    Text="Insert"></asp:LinkButton></FooterTemplate>
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lnkEditTrans" runat="server" CausesValidation="False" CommandName="Edit"
                                                    Text=" Edit"></asp:LinkButton></ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:CommandField HeaderText="Delete" ShowDeleteButton="True" ShowHeader="True" />
                                    </Columns>
                                    <FooterStyle BorderWidth="2px" Font-Names="Arial" Font-Size="12pt" />
                                    <HeaderStyle BorderWidth="2px" Font-Size="14pt" />
                                    <EditRowStyle BackColor="#33CC33" />
                                </asp:GridView>

AnswerRe: Viewstate Error Pin
Keith Barrow4-Nov-10 1:29
professionalKeith Barrow4-Nov-10 1:29 
GeneralRe: Viewstate Error Pin
treuveni4-Nov-10 2:44
treuveni4-Nov-10 2:44 
AnswerRe: Viewstate Error Pin
treuveni6-Nov-10 20:56
treuveni6-Nov-10 20:56 
GeneralMy Vote 1 Pin
Keith Barrow6-Nov-10 22:26
professionalKeith Barrow6-Nov-10 22:26 
Questionhow to send sms through .net web form Pin
lavibyni3-Nov-10 23:06
lavibyni3-Nov-10 23:06 
AnswerRe: how to send sms through .net web form Pin
Vimalsoft(Pty) Ltd4-Nov-10 0:45
professionalVimalsoft(Pty) Ltd4-Nov-10 0:45 
AnswerRe: how to send sms through .net web form Pin
gautamamit87-Nov-10 23:26
gautamamit87-Nov-10 23:26 
QuestionIntegration issue in ASP.NET Pin
Ahamed Azeem3-Nov-10 19:26
Ahamed Azeem3-Nov-10 19:26 
AnswerRe: Integration issue in ASP.NET Pin
Vimalsoft(Pty) Ltd4-Nov-10 0:43
professionalVimalsoft(Pty) Ltd4-Nov-10 0:43 
GeneralRe: Integration issue in ASP.NET Pin
Ahamed Azeem4-Nov-10 1:04
Ahamed Azeem4-Nov-10 1:04 
GeneralRe: Integration issue in ASP.NET Pin
Vimalsoft(Pty) Ltd4-Nov-10 3:41
professionalVimalsoft(Pty) Ltd4-Nov-10 3:41 
AnswerRe: Integration issue in ASP.NET Pin
T M Gray4-Nov-10 5:00
T M Gray4-Nov-10 5:00 
Questiongridview cell enter key Pin
C#Coudou3-Nov-10 18:45
C#Coudou3-Nov-10 18:45 
AnswerRe: gridview cell enter key Pin
Ankur\m/4-Nov-10 2:51
professionalAnkur\m/4-Nov-10 2:51 
GeneralRe: gridview cell enter key Pin
C#Coudou7-Nov-10 13:05
C#Coudou7-Nov-10 13:05 
QuestionMessage Removed Pin
3-Nov-10 8:47
Tiger4563-Nov-10 8:47 
AnswerRe: Creating an Enterprise level project with Asp.net MVC Pin
Not Active3-Nov-10 9:05
mentorNot Active3-Nov-10 9:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.