예제 #1
0
    protected void GetTimeSheetInfo(string id)
    {
        BA_Timesheet batine = new BA_Timesheet();
        DataSet      ds1    = new DataSet();

        ds1 = batine.GetUsers(id);
        ddlusers.DataSource     = ds1;
        ddlusers.DataTextField  = "firstname";
        ddlusers.DataValueField = "Consultantid";
        ddlusers.DataBind();
        ddlusers.Items.Insert(0, new ListItem("--Select--", "--Select--"));
    }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     lblSubMsg.Visible = false;
     id = Session["PSEName"].ToString();
     if (!Page.IsPostBack)
     {
         ddlUser.Enabled = true;
         BA_Timesheet batime = new BA_Timesheet();
         DataSet      ds     = new DataSet();
         ds = batime.GetUsers(id);
         ddlUser.DataSource     = ds;
         ddlUser.DataTextField  = "firstname";
         ddlUser.DataValueField = "Consultantid";
         ddlUser.DataBind();
         ddlUser.Items.Insert(0, new ListItem("--Select--", "--Select--"));
         ddlUser.Items.Insert(1, new ListItem("All Users", "All Users"));
     }
 }