Wednesday, March 21, 2012

Ajax Tab Control

In a FormView control I have inserted the control ajax Tab with within a series of textbox that they take the value es. <%#Bind ("pippo") %>. all the values come lost when I execute the save data. you can help me?

example:

<

asp:FormViewID="FormView1"runat="server"DataSourceID="ObjectDataSource1"><EditItemTemplate><tablewidth="1000"style="border-right: #cccccc 1pt solid; border-top: #cccccc 1pt solid; border-left: #cccccc 1pt solid; border-bottom: #cccccc 1pt solid"><tr><td>

.................

..............

....

<tdstyle="width: 50%"valign="top"><ajaxToolkit:TabContainerID="Tabs"runat="server"><ajaxToolkit:TabPanelID="TabPanel1"runat="server"HeaderText="Condizioni di pagamento"><ContentTemplate><asp:UpdatePanelID="UpdatePanel2"runat="server"><ContentTemplate><tablewidth="100%"style="border-right: #cccccc 1pt solid; border-top: #cccccc 1pt solid; border-left: #cccccc 1pt solid; border-bottom: #cccccc 1pt solid"><tr><td><tablewidth="100%"cellpadding="0"cellspacing="2"><tr><tdstyle="width: 90px"><asp:LabelID="Label21E"runat="server"Text="Pagamento"Font-Size="8pt"></asp:Label></td><tdstyle="width: 400px"align="left"><asp:DropDownListID="DropDownList4E"runat="server"DataSourceID="SqlCondPag"DataTextField="Desc"DataValueField="gggggg"SelectedValue='<%# Bind("gggggg") %>'></asp:DropDownList></td></tr></table></td></tr><tr><td><tablewidth="100%"cellpadding="0"cellspacing="2"><tr><tdstyle="width: 90px"><asp:LabelID="Label22E"runat="server"Text="ABI"Font-Size="8pt"></asp:Label></td><tdstyle="width: 155px"><asp:TextBoxID="TextBox16E"runat="server"Width="80%"Text='<%# Bind("rrrrrr") %>'></asp:TextBox></td><tdstyle="width: 90px"><asp:LabelID="Label27E"runat="server"Text="CAB"Font-Size="8pt"></asp:Label></td><tdstyle="width: 155px"><asp:TextBoxID="TextBox20E"runat="server"Width="80%"Text='<%# Bind("asasa") %>'></asp:TextBox></td></tr></table></td></tr><tr><td><tablewidth="100%"cellpadding="0"cellspacing="2"><tr><tdstyle="width: 90px"><asp:LabelID="Label23E"runat="server"Text="Banca"Font-Size="8pt"></asp:Label></td><tdstyle="width: 400px"><asp:TextBoxID="TextBox17E"runat="server"Width="93%"Text='<%# Bind("ffffffff") %>'></asp:TextBox></td></tr></table></td></tr><tr><td><tablewidth="100%"cellpadding="0"cellspacing="2"><tr><tdstyle="width: 90px"><asp:LabelID="Label24E"runat="server"Text="Agenzia"Font-Size="8pt"></asp:Label></td><tdstyle="width: 400px"><asp:TextBoxID="TextBox18E"runat="server"Width="93%"Text='<%# Bind("ddddddd") %>'></asp:TextBox></td></tr></table></td></tr><tr><td><tablewidth="100%"cellpadding="0"cellspacing="2"><tr><tdstyle="width: 90px"><asp:LabelID="Label25E"runat="server"Text="Numero C.C."Font-Size="8pt"></asp:Label></td><tdstyle="width: 155px"><asp:TextBoxID="TextBox19E"runat="server"Width="80%"Text='<%# Bind("cccCC") %>'></asp:TextBox></td><tdstyle="width: 90px"><asp:LabelID="Label26E"runat="server"Text="CIN"Font-Size="8pt"></asp:Label></td><tdstyle="width: 155px"><asp:TextBoxID="TextBox21E"runat="server"Width="13%"Text='<%# Bind("aaaa") %>'></asp:TextBox></td></tr></table></td></tr></table></ContentTemplate></asp:UpdatePanel></ContentTemplate></ajaxToolkit:TabPanel><ajaxToolkit:TabPanelID="TabPanel2"runat="server"HeaderText="Contatti"><ContentTemplate><asp:UpdatePanelID="UpdatePanel1"runat="server"><ContentTemplate>

....................

........................

</ContentTemplate></asp:UpdatePanel></ContentTemplate></ajaxToolkit:TabPanel>

</ajaxToolkit:TabContainer></td></tr><tr><tdcolspan="2"align="center"><asp:ButtonID="Salva"runat="server"CausesValidation="True"CommandName="Update"Text="Salva"Font-Names="Verdana"Font-Size="8pt"/> <asp:ButtonID="Annulla"runat="server"CausesValidation="False"CommandName="Cancel"Text="Annulla"Font-Names="Verdana"Font-Size="8pt"/></td></tr></table></EditItemTemplate>

......

...

</

asp:FormView>

this is my class for update record

Public

SharedSub Editempl(ByVal IdRecordAsInteger,ByVal aaaaAsString,ByVal cccCCAsString,ByVal dddddddAsString, _ .....

all value in tab control is nothing, the another value in viewform is ok why?

tanks

Miky


I have read all the formun to the search of a solution but me they are shrewed that my problem is a problem that still has not been resolved from by now much time. me it seems to have understood that the problem is of the UpdatePanel that in the postback loses the values. it is normal school that still nobody has found one solution?


Sorry for the trouble - pleaseopen a work item to report and track this issue. Doing so will also allow other users in the community to comment on and vote for the issue. Thank you!

Hi I have resolved the problem in thisway . I hope that it can help the other developpers

bye

Michele SInesi

No comments:

Post a Comment