Beispiel #1
0
        private void PopulateNavigationSteps(int TabId)
        {
            TabController entity = new TabController();
            DataTable     dt = entity.GetAllParentNodesOfSelectedNode(TabId, 1);
            string        strHTML = string.Empty, Title = string.Empty, Liz = string.Empty, Link = string.Empty;

            if (dt.Rows.Count > 0)
            {
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    Title = dt.Rows[i]["Title"].ToString();
                    Link  = "/index/" + dt.Rows[i]["TabId"].ToString();
                    Liz  += "<li><a href=\"" + Link + "\" title=\"" + Title + "\" target='_self'><span>" + Title + "</span></a>";
                }
            }

            strHTML = "<ul><li class=\"first\"><a href=\"#\">Home</a></li>"
                      + Liz
                      + "</ul>";
            Literal_Title.Text = strHTML;
        }