In Aspnemvc: how to get Html.RadioButtonFor selected value to Controller


0 votes
asked Mar 15, 2016 by monte (830 points)
I have tried creating strongly typed view and got stuck with issue of getting selected Radio button value to controller.

4 Answers

0 votes
answered Apr 25, 2016 by isabella5555 (1,110 points) 1 flag
selected Apr 27, 2016 by deletedThink
 
Best answer

These radiobutton values are dynamically generated. NET MVC How to Pass radiobutton selected value from view to contr.

Here is a good article ASP.NET MVC How to Pass radiobutton selected value from view to controller, partial views | The ASP.NET Forums
commented Apr 27, 2016 by deletedThink (110 points)
When answering a question please:Read the question carefully
+1 vote
answered Apr 5, 2016 by vendig (1,470 points) 1 flag

Argument Null Exception The value parameter is null.
Object The value of the selected radio button. You can take the help from the following link : InputExtensions.RadioButton Method (HtmlHelper, String, Object) (System.Web.Mvc.Html) :)
0 votes
answered May 6, 2016 by fht_3859 (490 points)
More details on this can be found at InputExtensions.RadioButton Method (HtmlHelper, String ...
Test framework can do this if you ask it to test a private function
commented May 7, 2016 by DirtyDirty (730 points)
See this page with information on how to create a user style
0 votes
answered May 31, 2016 by behind (290 points)
I see that this question became popular so I post my actual solution. You can find more information at http://www.codeproject.com/Questions/1026534/How-Do-I-Send-The-Selected-Values-Of-Radiobutton-T

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...