private void DashBoardView()
 {
     try
     {               
         string PageSEOName = string.Empty;
         if (Request.QueryString["pgnm"] != null)
         {
             PageSEOName = Request.QueryString["pgnm"].ToString();
         }
         else
         {
             PageBase pb = new PageBase();
             SageUserControl SageUser = new SageUserControl();
             PageSEOName = pb.GetPageSEOName(SageUser.PagePath);
         }
         DashboardController objController = new DashboardController();
         List<DashboardInfo> lstDashboard = objController.DashBoardView(PageSEOName, GetUsername, GetPortalID);
         lstDashboard.ForEach(
             delegate(DashboardInfo obj)
             {
                 obj.IconFile = string.Format("{0}/PageImages/{1}", Request.ApplicationPath == "/" ? "" : Request.ApplicationPath, obj.IconFile);
                 obj.Url = obj.Url + Extension;
             }
             );
         rptDashBoard.DataSource = lstDashboard; 
         rptDashBoard.DataBind();            
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }            
 }
        private void DashBoardView()
        {
            try
            {
                string PageSEOName = string.Empty;
                if (Request.QueryString["pgnm"] != null)
                {
                    PageSEOName = Request.QueryString["pgnm"].ToString();
                }
                else
                {
                    PageBase pb = new PageBase();
                    SageUserControl SageUser = new SageUserControl();
                    PageSEOName = pb.GetPageSEOName(SageUser.PagePath);
                }
                DashboardController objController = new DashboardController();
                List<DashboardInfo> lstDashboard = objController.DashBoardView(PageSEOName, GetUsername, GetPortalID);
                lstDashboard.ForEach(
                    delegate(DashboardInfo obj)
                    {
                        if (obj.IconFile != null && obj.IconFile != string.Empty)
                        {
                            string iconFile = string.Empty;
                            iconFile = string.Format("{0}/PageImages/{1}", Request.ApplicationPath == "/" ? "" : Request.ApplicationPath, obj.IconFile);
                            iconFile = "<img align='middle' style='border-width:0px;' src='" + iconFile + "' class='sfImageheight' id='ctl17_rptDashBoard_ctl17_imgDisplayImage'>";
                            obj.IconFile = iconFile;
                        }
                        else
                        {
                            obj.IconFile = "<i class='icon-" + obj.PageName.Replace(" ", "-").ToLower() + "'></i>";

                        }
                        obj.Url = obj.Url + Extension;
                    }
                    );
                rptDashBoard.DataSource = lstDashboard;
                rptDashBoard.DataBind();
            }
            catch (Exception ex)
            {
                ProcessException(ex);
            }
        }