/// <summary> /// Bind the Data to the Page. /// </summary> private void BindParentData() { try { // ifolder string ifolderLocation = web.GetiFolderLocation(ifolderID); if (ifolderLocation == null) { //if we are not able to get the ifolder location for a particular ifolder we show the iFolder page instead of an error // we fail to get the location, due to catalog update delay Response.Redirect("iFolders.aspx"); } UriBuilder remoteurl = new UriBuilder(ifolderLocation); remoteurl.Path = (new Uri(web.Url)).PathAndQuery; web.Url = remoteurl.Uri.ToString(); iFolder ifolder = web.GetiFolder(ifolderID); // rights Actions.Visible = (ifolder.MemberRights != Rights.ReadOnly); EntryData.Columns[1].Visible = Actions.Visible; // parent iFolderEntry entry; if ((entryID == null) || (entryID.Length == 0)) { entry = web.GetEntries(ifolderID, ifolderID, 0, 1).Items[0]; entryID = entry.ID; } else { entry = web.GetEntry(ifolderID, entryID); } entryPath = entry.Path; } catch (SoapException ex) { if (!HandleException(ex)) { throw; } } // state ViewState["EntryID"] = entryID; ViewState["EntryPath"] = entryPath; }
/// <summary> /// Bind the Data to the Page. /// </summary> private void BindParentData() { try { // ifolder iFolder ifolder = web.GetiFolder(ifolderID); // rights Actions.Visible = (ifolder.MemberRights != Rights.ReadOnly); EntryData.Columns[1].Visible = Actions.Visible; // parent iFolderEntry entry; if ((entryID == null) || (entryID.Length == 0)) { entry = web.GetEntries(ifolderID, ifolderID, 0, 1).Items[0]; entryID = entry.ID; } else { entry = web.GetEntry(ifolderID, entryID); } } catch (SoapException ex) { if (!HandleException(ex)) { throw; } } // state ViewState["EntryID"] = entryID; }
/// <summary> /// Bind the Data to the Page. /// </summary> private void BindData() { try { // parent iFolderEntry entry; if ((entryID == null) || (entryID.Length == 0)) { entry = web.GetEntries(ifolderID, ifolderID, 0, 1).Items[0]; entryID = entry.ID; } else { entry = web.GetEntry(ifolderID, entryID); } ParentPath.Text = FormatDirPath(entry.Path); // Pass this page information to create the help link Head.AddHelpLink(GetString("NEWFOLDER")); } catch (SoapException ex) { if (!HandleException(ex)) { throw; } } }
/// <summary> /// Bind the Data to the Page. /// </summary> private void BindData() { try { // parent iFolderEntry entry; if ((entryID == null) || (entryID.Length == 0)) { entry = web.GetEntries(ifolderID, ifolderID, 0, 1).Items[0]; entryID = entry.ID; } else { entry = web.GetEntry(ifolderID, entryID); } ParentPath.Text = entry.Path; // Pass this page information to create the help link Head.AddHelpLink(GetString("UPLOAD")); //Enable SSL in web access can be configured by the admin // SSL property is used only for thick client to server communication and vice versa } catch (SoapException ex) { if (!HandleException(ex)) { throw; } } }