Пример #1
0
 private void GetAllProject()
 {
     try
     {
         List <Inv_Project> project = projectBll.GetAllProject();
         if (project.Count > 0)
         {
             grdProjectValue.DataSource = project;
             grdProjectValue.DataBind();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
 protected void GetAllProject()
 {
     try
     {
         var row = projectBll.GetAllProject();
         if (row.Count > 0)
         {
             ddlProject.DataSource     = row.ToList();
             ddlProject.DataTextField  = "Project_Name";
             ddlProject.DataValueField = "Project_Id";
             ddlProject.DataBind();
             ddlProject.Items.Insert(0, new ListItem("---Select One---", "0"));
         }
     }
     catch
     {
     }
 }