int id = (int)GridView1.DataKeys[e.NewSelectedIndex].Values["id"];
if (id == 1)
{
DataTable dt = new DataTable();
RecBAL rb = new RecBAL();
dt = rb.getFullData();
DropDownList1.DataSource = dt;
DropDownList1.DataTextField = "username";
DropDownList1.DataValueField = "id";
DropDownList1.DataBind();
}
if (id == 1)
{
DataTable dt = new DataTable();
RecBAL rb = new RecBAL();
dt = rb.getFullData();
DropDownList1.DataSource = dt;
DropDownList1.DataTextField = "username";
DropDownList1.DataValueField = "id";
DropDownList1.DataBind();
}
No comments:
Post a Comment