void BindLookupDropdown(string type, DropDownList l) { DataSet d = db.GetDataSetCache("select id_lookup,text from lookups where type='" + type + "'"); l.DataTextField = "text"; l.DataValueField = "id_lookup"; l.DataSource = d; l.DataBind(); l.Items.Insert(0, ""); }