public void BindDropDownList<T>(List<T> data, string val, string txt) { foreach (var v in data) { } }
msc_accounthead.BindDropDownList<AccountHead>(acc_list, "ahmID", "ahmHead");
ddlDropdownId.DataSource = data; ddlDropdownId.DataTextField = txt; ddlDropdownId.DataValueField = val; ddlDropdownId.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)