Resolve iFolder location before any calls. Restore 'current server' URL
during unload for later use.
Please Review
Thanks,
Johnny
Index: iFolderDetailsPage.aspx.cs
===================================================================
--- iFolderDetailsPage.aspx.cs (revision 6810)
+++ iFolderDetailsPage.aspx.cs (working copy)
@@ -153,6 +153,8 @@
/// iFolder user policy control.
/// </summary>
protected Policy Policy;
+
+ protected string currentServerURL;
#endregion
@@ -244,7 +246,18 @@
/// <returns>The name of the ifolder.</returns>
private string GetiFolderDetails()
{
+ //Resolve the location of iFolder.
+ string ifolderLocation = web.GetiFolderLocation
(iFolderID);
+
+ UriBuilder remoteurl = new UriBuilder(ifolderLocation);
+ remoteurl.Path = (new Uri(web.Url)).PathAndQuery;
+ web.Url = remoteurl.Uri.ToString();
+
iFolderDetails ifolder = web.GetiFolderDetails(
iFolderID );
+
+ //Reset URL.
+ //web.Url = currentServerURL;
+
Name.Text = ifolder.Name;
Description.Text = ifolder.Description;
Owner.Text = ifolder.OwnerFullName;
@@ -403,7 +416,8 @@
{
// connection
web = Session[ "Connection" ] as iFolderAdmin;
-
+ currentServerURL = web.Url;
+
// localization
rm = Application[ "RM" ] as ResourceManager;
@@ -432,6 +446,10 @@
}
}
+ private void Page_Unload(object sender, System.EventArgs e)
+ {
+ web.Url = currentServerURL;
+ }
/// <summary>
/// Page_PreRender
/// </summary>
@@ -818,6 +836,7 @@
iFolderMemberListFooter.PageLastClick += new
ImageClickEventHandler( PageLastButton_Click );
this.Load += new System.EventHandler(this.Page_Load);
+ this.Unload += new System.EventHandler
(this.Page_Unload);
}
#endregion
}
_______________________________________________
ifolder-dev mailing list
[email protected]
http://forge.novell.com/mailman/listinfo/ifolder-dev