eBooks from Scott Adams
All books and eBooks by Scott Adams:
Microsoft® .NET and SAP
by Juergen Daiberl, Steve Fox, Scott Adams, and Thomas Reimer
Chapter 5 Microsoft Office SharePoint Server: UI Integration 223 delimiter[0] = @"/"; string[] splitUri = Page.Request.Url.AbsoluteUri.Split(delimiter, StringSplitOptions.None); string str_MOSSUrlName = splitUri[3].ToString().Trim(); System.Configuration.AppSettingsReader reader = new System.Configuration.AppSettingsReader(); // Read out the name of the Home Page str_home = (string)reader.GetValue (str_Prefix + str_MOSSUrlName, str_MOSSUrlName.GetType()); } catch { // If the entry in the web.config does not exists return an empty page str_home = "about:blank"; } return str_home; } // This function returns the URL to the BSP private string TranslatePageIdToUrl(string urlPageID) { string str_Url = string.Empty; if (urlPageID.Trim() == string.Empty) { // If no bspid param exists, the home page // URL will be returned str_Url = GetHomePageUrl(); } else { try { // If an bspid parameter exists, the URL for the IFrame // will be read from the web.config. Here the URLs are //defined System.Configuration.AppSettingsReader reader = new System.Configuration.AppSettingsReader(); // Return the URL from web.config str_Url =(string)reader.GetValue(urlPageID.Trim(), str_Url.GetType()); } catch
(2009)

