Esempio n. 1
0
        public static void AddHelpLink(
            Panel parentControl,
            string helpkey,
            string siteNavigationRoot,
            string cssBaseUrl)
        {
            Literal litSpace = new Literal();

            litSpace.Text = " ";
            parentControl.Controls.Add(litSpace);

            HelpLinkButton helpLinkButton = new HelpLinkButton();

            helpLinkButton.ImageUrl = "~/Data/SiteImages/FeatureIcons/help.gif";
            helpLinkButton.HelpKey  = helpkey;
            if ((siteNavigationRoot != null) && (siteNavigationRoot.Length > 0))
            {
                helpLinkButton.NavigateUrl = siteNavigationRoot + "/Help.aspx";
            }
            helpLinkButton.CssBaseUrl = cssBaseUrl;

            parentControl.Controls.Add(helpLinkButton);

            litSpace      = new Literal();
            litSpace.Text = " ";
            parentControl.Controls.Add(litSpace);
        }
Esempio n. 2
0
        public static void AddHelpLink(
            Panel parentControl,
            string helpkey,
            string siteNavigationRoot,
            string cssBaseUrl)
        {
            Literal litSpace = new Literal();
            litSpace.Text = " ";
            parentControl.Controls.Add(litSpace);

            HelpLinkButton helpLinkButton = new HelpLinkButton();
            helpLinkButton.ImageUrl = "~/Data/SiteImages/FeatureIcons/help.gif";
            helpLinkButton.HelpKey = helpkey;
            if ((siteNavigationRoot != null) && (siteNavigationRoot.Length > 0))
            {
                helpLinkButton.NavigateUrl = siteNavigationRoot + "/Help.aspx";
            }
            helpLinkButton.CssBaseUrl = cssBaseUrl;

            parentControl.Controls.Add(helpLinkButton);

            litSpace = new Literal();
            litSpace.Text = " ";
            parentControl.Controls.Add(litSpace);
        }