Ejemplo n.º 1
0
    protected void btnSelToGV_Click(object sender, EventArgs e)
    {
        selResult.Text = null;
        DataSet sda = db.sel_gv("select ID,userName,userSex,userBorn,userPhone,userMail,userQQ,create_date from register", "register");

        gvSearch.DataKeyNames = new string[] { "ID" };
        gvSearch.DataSource   = sda;
        gvSearch.DataBind();
    }