DataTable tb1 = SQLHelper.Instance.getinfo("select GENDER_ID, GENDER_TYPE from gender"); for (int i = 0; i < tb1.Rows.Count; i++) { string T = tb1.Rows[i][0].ToString(); if (m == T) DropDownList1.Items.Add(new ListItem(tb1.Rows[i][1].ToString(), tb1.Rows[i][0].ToString(),true)); else DropDownList1.Items.Add(new ListItem(tb1.Rows[i][1].ToString(), tb1.Rows[i][0].ToString(),false)); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)