Populate dropdown list based on data retrieved from database in MVC Application (Controller and BLL)

Controller public JsonResult FillRoles() { return Json(BLLFile.FillUserRoles(), JsonRequestBehavior.AllowGet); } Code in BLL file public static List<sp_FillUserRoles_Result> FillUserRoles() { using (Db_obj db = new Db_obj()) { return db.sp_FillUserRoles().ToList(); } } Explanation Now, Understand the sequence: View will ask controller to send data.FillRoles() Method in controller will request data from BLL file so it will give call... Continue Reading →

Blog at WordPress.com.

Up ↑

Design a site like this with WordPress.com
Get started