protected void Page_Load(object sender, EventArgs e)
        {
            try{
                BOLHardCode HardCodeBOL = new BOLHardCode();

                ddlCats.DataSource     = HardCodeBOL.GetList("HCResourceSitesCats");
                ddlCats.DataTextField  = "Name";
                ddlCats.DataValueField = "Code";
                ddlCats.DataBind();
                ListItem li1 = new ListItem("همه گروه ها", "0");
                ddlCats.Items.Insert(0, li1);

                BOLResourceSites ResourceSitesBOL = new BOLResourceSites();
                ddlResources.DataSource     = ResourceSitesBOL.GetActiveList();
                ddlResources.DataTextField  = "Name";
                ddlResources.DataValueField = "Code";
                ddlResources.DataBind();
                ListItem li2 = new ListItem("همه منابع", "0");
                ddlResources.Items.Insert(0, li2);
            }
            catch (Exception err)
            {
                BOLErrorLogs ErrorLogsBOL = new BOLErrorLogs();
                ErrorLogsBOL.Insert(err.Message, DateTime.Now, Request.Url.AbsolutePath, "UCNewsFeedTools::Load");
            }
        }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         BOLResourceSites ResourceSitesBOL = new BOLResourceSites();
         rptReasources.DataSource = ResourceSitesBOL.GetActiveList();
         rptReasources.DataBind();
     }
     catch (Exception err)
     {
         BOLErrorLogs ErrorLogsBOL = new BOLErrorLogs();
         ErrorLogsBOL.Insert(err.Message, DateTime.Now, Request.Url.AbsolutePath, "UCResources::Load");
     }
 }