Exemplo n.º 1
0
    //dropdownlist学院列绑定
    private void drpBind()
    {
        TermsManage    tm = new TermsManage();
        CollegesManage cm = new CollegesManage();

        DropDownList1.DataSource    = tm.Select();
        DropDownList1.DataTextField = "term";
        DropDownList1.DataBind();
        DropDownList2.DataSource    = cm.Select();
        DropDownList2.DataTextField = "college";
        DropDownList2.DataBind();
        ddl3bind();
    }
Exemplo n.º 2
0
 // gridview1绑定
 public void gridviewBind()
 {
     GridView1.DataSource = tm.Select();
     GridView1.DataBind();
 }