Beispiel #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        IIdentity id = User.Identity;

        headcode = Convert.ToInt32(User.Identity.Name);
        if (!IsPostBack)
        {
            Calendar1.Visible = false;
            Calendar3.Visible = false;
            List <Employee> elist = new List <Employee>();
            elist = d.getAllEmployees(headcode);
            DropDownList1.DataSource     = elist;
            DropDownList1.DataTextField  = "employeename";
            DropDownList1.DataValueField = "employeecode";
            DropDownList1.DataBind();
        }
    }