Hello,
I have been unable to find a solution in the examples and forums.
On a page I have 3 tabs and 3 invisible Iframes. On Tab click, with autopostback=true, I make the associated Iframe visible and set the source attribute of the Iframe if it has not previously been loaded. The Iframe loads a ASPC page with its own scriptmanager. If there is a button on the ASPX page loaded into the Iframe which display time on a label, and I click to a different tab and click back, the label is blank. It is seems that page in the Iframe is not maintaining state.
Does anyone have a solution?
My goal is to have the user be able to work on a tab, for example enter text in a textbox press a button and have the text displayed a label, click to another tab and click back to previous tab to have the text still display on the label.
Thanks
Tabs
I have been unable to find a solution in the examples and forums.
On a page I have 3 tabs and 3 invisible Iframes. On Tab click, with autopostback=true, I make the associated Iframe visible and set the source attribute of the Iframe if it has not previously been loaded. The Iframe loads a ASPC page with its own scriptmanager. If there is a button on the ASPX page loaded into the Iframe which display time on a label, and I click to a different tab and click back, the label is blank. It is seems that page in the Iframe is not maintaining state.
Does anyone have a solution?
My goal is to have the user be able to work on a tab, for example enter text in a textbox press a button and have the text displayed a label, click to another tab and click back to previous tab to have the text still display on the label.
Thanks
protected void RadTabStrip1_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e) |
{ |
if (!IFrame1Loaded) |
{ |
path = "TabPages/Page1.aspx?"; |
Iframe1.Attributes.Add("src", path); |
IFrame1Loaded = true; |
} |
Iframe1.Visible = true; |
} |
Tabs
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Visible="true" BorderStyle="Solid" BorderColor="black" |
BorderWidth="0px" Skin="Outlook" SelectedIndex="0" AutoPostBack="true" OnTabClick="RadTabStrip1_TabClick"> |
<Tabs> |
<telerik:RadTab Text="Page1" ID="tab0" runat="server"></telerik:RadTab> |
<telerik:RadTab Text="Page2" ID="tab1" runat="server"></telerik:RadTab> |
<telerik:RadTab Text="Page3" ID="tab2" runat="server"></telerik:RadTab> |
</Tabs> |
</telerik:RadTabStrip> |
<iframe id="Iframe1" src="" runat="server" width="98%" height="98%" frameborder="1" visible="false" ></iframe> |
<iframe id="Iframe2" src="" runat="server" width="98%" height="98%" frameborder="1" visible="false" ></iframe> |
<iframe id="Iframe3" src="" runat="server" width="98%" height="540px" frameborder="1" visible="false" ></iframe> |