I want to test if the checkbox is checked or not from my action method, what i need is to pass checkbox value from view to controller.
This is my view:
try using form collection
[HttpPost] public ActionResult Index(FormCollection collection) { if(!string.IsNullOrEmpty(collection["checkResp"]) { string checkResp=collection["checkResp"]; bool checkRespB=Convert.ToBoolean(checkResp); } }