예제 #1
0
    private void Binds()
    {
        ddlDeptId.DataSource     = DepartmentBLL.AllData("", "DeptId", "");
        ddlDeptId.DataTextField  = "DeptName";
        ddlDeptId.DataValueField = "DeptId";
        ddlDeptId.DataBind();

        rpView.DataSource = MajorBLL.AllData("", "MajorId", "asc");
        rpView.DataBind();
    }
 private void Binds()
 {
     rpView.DataSource = DepartmentBLL.AllData("", "DeptId", "asc");
     rpView.DataBind();
 }