I am fairly new to MVC. I have a simple problem. I have 3 radio buttons on my mvc asp.net page. I would like to call an action in my controller when I check one of the radio buttons on the page. How do I do a postback in mvc?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you had radio buttons like:
You could add script (assuming you can use jQuery) on the page like:
Assuming you have an action method in the same controller as the one that generated your view: