Пример #1
0
 private void SetSitemap()
 {
     try
     {
         using (DataClassesDataContext data = new DataClassesDataContext())
         {
             var cont = data.GetSitemapOfTrainerDetail_En(int.Parse(Request.QueryString["nid"])).ToList();
             Label lblSitemap1 = (Label)Master.FindControl("lblSitemap1");
             HtmlAnchor sitemapSplit = (HtmlAnchor)Master.FindControl("sitemapSplit");
             Label lblSitemap2 = (Label)Master.FindControl("lblSitemap2");
             if (lblSitemap1 != null && sitemapSplit != null && lblSitemap2 != null)
             {
                 lblSitemap1.Text = cont[0].FATHER;
                 sitemapSplit.InnerText = "»";
                 lblSitemap2.Text = cont[0].TENSANPHAM;
             }
         }
     }
     catch (Exception ex)
     {
         // error message here
     }
 }