Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 09, 2009 12:48 PM by rajkumar.bathula
Oct 21, 2005 09:26 AM|LINK
/// id like to call GenerateTreeView here before showing the tree
Oct 21, 2005 11:59 AM|LINK
Oct 24, 2005 10:06 AM|LINK
the reason i ask this is because im having a bit of a problem with a treeview and IFrame i am using on a page
basically depending on what node the user clicks a page is then loaded into the IFrame where the user can then add new or update existing data relating to that node.
When the user adds/updates the data within the IFrame i need to then be able to refresh the treeview on the parent page. At the moment, the only solution i have is to force the Parent page to postback & therefore repopulate the treeview. but
this causes the page within the IFrame to be lost as it returns to the default page.
i cant reload the previous page into the IFrame either as i require a lot of data of the selected node, but this has since been lost with the postback.
how hard would it be to achieve this via AJAX?
Oct 24, 2005 05:43 PM|LINK
Oct 24, 2005 06:16 PM|LINK
private void Page_Load(object sender, System.EventArgs e)
if ( this.IsPostBack )
string eventArgument = this.Request["__EVENTARGUMENT"];
if ( eventArgument != null && eventArgument == "ServerSideCallback" )
string scriptKey = "ServerSideCallbackScript";
if ( !this.IsClientScriptBlockRegistered(scriptKey) )
StringBuilder sbScript = new StringBuilder();
sbScript.Append(" " + this.GetPostBackEventReference(this, "ServerSideCallback") + ";\n");
// For demo purposes, I'll just add it to a button
// not letting the Button PostBack by returning false...
// The server-side method to call...
private void callbackFromClientSide()
Oct 26, 2005 10:11 AM|LINK
Oct 26, 2005 11:25 AM|LINK
Oct 26, 2005 01:50 PM|LINK
Oct 26, 2005 07:03 PM|LINK
Causing a postback allows the codebehind to execute and is a possible solution.
Nov 08, 2005 06:41 AM|LINK