I'm a new user. Today, I meet an issue just now. I need your help. Thanks!
I add one RadSplitter and RadPane dynamic then I set RadPane's ContentUrl. But when page postback, the content in RadPane clear. Does anybody knows why? The following is my code about this issue:
Some code in .aspx:
<div id ="uxDivTest" runat ="server">
</div>
<asp:Button ID="btnAdd" runat="server" Text="Add Pane" OnClick="btnAdd_Click" />
<asp:Button ID="btnTest" runat="server" Text="Refresh Page" onclick="btnTest_Click" />
Some code in .aspx.cs:
protected void btnAdd_Click(object sender, EventArgs e) {
RadSplitter dispositionSplitter = new RadSplitter();
RadPane dispositionPanel = new RadPane();
dispositionSplitter.ID = "splitter";
dispositionPanel.ID = "panel";
dispositionPanel.ContentUrl = "http://www.google.com";
dispositionSplitter.Items.Add(dispositionPanel);
uxDivTest.Controls.Add(dispositionSplitter);
}
// postback page
protected void btnTest_Click(object sender, EventArgs e) {
}
When I click Add Pane button, openning google in RadPane. That's all right. But when I click Refresh Page button to postback page, RadPane is empty and google site disappear.
How shoud I make google appear all the time even when page postback?
Another question: How shoud I add RadSplitter and RadPane dynamic in Client-Side with javascript?
Thank you again!
Jguo