Asking for help, clarification, or responding to other answers. //ViewBag.EntireForm = Request.Form; Then you can do this: In your view, you can create a checkbox that will bind to this boolean value: If it is checked, the model property will be true. How to pass Form Values to the Controller in .NET MVC Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. Any way! How do you create a dropdownlist from an enum in ASP.NET MVC? Jquery, JQUERY ajax passing value from MVC View to Controller This requesting is executing properly but it has a biggest limitation that how can i pass dynamic value ( { ClassID = 1, SubjectID = 2, ChapterID = 3 }) from drop down list, which already given static. For some reason Andrew method of creating the checkbox by hand didn't work for me using Mvc 5. This will represent the true or false (checked or unchecked) values of your checkboxes. You can have 3 separate form tags, one for each button. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Hope it helps someone. If the letter V occurs in a few native words, why isn't it included in the Irish Alphabet? I have 4 inputs on my View, which I would like to send to my controller when a button is pressed. Passing Input values between View and Controller in MVC. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Thanks Matas. How to draw a grid of grids-with-polygons? But how do I pass the Id to the controller using submit button. Also remember, nested forms are invalid HTML. These parameters have input field values that were entered by the user. How to help a successful high schooler who is failing in college? posted 9 years ago I don't use any strongly type, can i pass this value without it ?? This object contains the input field name and values as name-value pairs in case of the form submit. The ViewModel object contains a paginated list as well as some SelectLists. If the letter V occurs in a few native words, why isn't it included in the Irish Alphabet? Why are statistics slower to build on clustered columnstore? By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. We are going to implement MVC with SpringBoot. Use @Html.CheckBoxFor(x => x) to display checkboxes and hold their values. Fourier transform of a functional derivative. I don't want to create a form so wondering how I can get the value of the hidden input into de URL.Action ID. @PrashantMohite, OP wants to redirect so ajax wont work.