Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            UserInfoHelper helper = new UserInfoHelper();

            ddlDept.DataSource = helper.GetDeptList();
            ddlDept.DataBind();

            ddlUsers.DataSource = helper.GetCFUserList(ddlDept.SelectedValue);
            ddlUsers.DataBind();
        }
    }