public List <SelectListItem> GetFeeType() { ValueController obj = new ValueController(); DataSet ds = obj.GetFeeType(); List <SelectListItem> ls = new List <SelectListItem>(); foreach (DataRow dr in ds.Tables[0].Rows) { ls.Add(new SelectListItem { Text = dr[0].ToString() }); } Session["FeeType"] = ls; return(ls); }