Skip to content Skip to sidebar Skip to footer

Asp.net Mvc Radiobutton Retrieve Selected Data

I'm working with ASP.net MVC4 with razor and javascript. I load my view as follow: When Retrieve data from database not check the values ​​of radiobutton, the radiobutton is em

Solution 1:

if you can't use a for helper to tie it to your model then you will need to put a unique name on the field and then you can get the value on your controller using

Request.Form["RadioName"].ToString()

Post a Comment for "Asp.net Mvc Radiobutton Retrieve Selected Data"