TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to Get Selected Radio Button Value on Action in ASP.NET MVC
Mukesh Kumar
Nov 30
2015
Code
16.2
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
View
@using (Html.BeginForm("Index", "Demo"))
{
@Html.RadioButton("Answer", "A")
<
span
>
A
</
span
>
@Html.RadioButton("Answer", "B")
<
span
>
B
</
span
>
<
input
type
=
"submit"
value
=
"Next"
/>
}
Controller
[HttpPost]
public
ActionResult Index(
string
Answer)
{
return
View();
}
MVC
Radio Button
ASP.NET