protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e) { dt1.Clear(); dt1 = g1.Getusers(); for (i = 0; i < dt1.Rows.Count; i++) { if (ListBox1.SelectedValue.ToString() == dt1.Rows[i][1]) { TextBox1.Text = dt1.Rows[i][1].ToString(); TextBox2.Text = dt1.Rows[i][2].ToString(); DropDownList1.SelectedValue = dt1.Rows[i][3].ToString(); } } }
ListBox1.SelectedValue.ToString() == dt1.Rows[i][1]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)