Наши проекты:
Журнал · Discuz!ML · Wiki · DRKB · Помощь проекту |
||
ПРАВИЛА | FAQ | Помощь | Поиск | Участники | Календарь | Избранное | RSS |
[3.22.119.251] |
|
Сообщ.
#1
,
|
|
|
Здравствуйте. Пытаюсь вставить dropdownlist в listview но при попытки корректировки выдает ошибку 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
<EditItemTemplate> <span style=""> <asp:TextBox ID="tb_UserId" runat="server" Text='<%# Bind("UserId") %>' visible="false"/> <asp:TextBox ID="tb_UserName" runat="server" Text='<%# Bind("UserName") %>' visible="false"/> Фамилия: <asp:TextBox ID="tb_Surname" runat="server" Text='<%# Bind("Surname") %>' /> Имя: <asp:TextBox ID="tb_Name" runat="server" Text='<%# Bind("Name") %>' /> <asp:TextBox ID="tb_DataBirthday" runat="server" Text='<%# Bind("DataBirthday") %>' visible="false"/> <asp:TextBox ID="tb_Nationality" runat="server" Text='<%# Bind("Nationality") %>' visible="false"/> Страна: <asp:TextBox ID="tb_Country" runat="server" Text='<%# Bind("Country") %>' /> <asp:DropDownList ID="DropDownList1" runat="server" DataTextField="name" DataValueField="id" SelectedValue='<%# Bind("Country") %>'> </asp:DropDownList> Область: <asp:TextBox ID="tb_Region" runat="server" Text='<%# Bind("Region") %>' /> Город: <asp:TextBox ID="tb_City" runat="server" Text='<%# Bind("City") %>' /> Образование: <asp:TextBox ID="tb_Education" runat="server" Text='<%# Bind("Education") %>' /> Специальность: <asp:TextBox ID="tb_Occupation" runat="server" Text='<%# Bind("Occupation") %>' /> Мобильный: <asp:TextBox ID="tb_Mobile" runat="server" Text='<%# Bind("Mobile") %>' /> <asp:TextBox ID="tb_Email" runat="server" Text='<%# Bind("Email") %>' visible="false"/> Рост: <asp:TextBox ID="tb_Height" runat="server" Text='<%# Bind("Height") %>' /> Вес: <asp:TextBox ID="tb_Weight" runat="server" Text='<%# Bind("Weight") %>' /> О себе: <asp:TextBox ID="tb_About" runat="server" Text='<%# Bind("About") %>' Height="125px" Width="285px" TextMode="MultiLine" /> <asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="Сохранить" /> <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Закрыть" /> </span> </EditItemTemplate> |