Reputation: 10648
I am using ASP.NET MVC 4, and I am trying to do the following:
I have a view where I have some radio buttons and checkboxes. User can select what he wants and then there is a submit button in this view that can be pressed. If this button is pressed I want pass by parameter or some other way the radio buttons and checkboxes state (checked/unchecked) to a controller that is linked to another view. The controller is going to do some tasks by taking into account the radio buttons and checkboxes state. While the controller is doing those tasks, in the view associated with the controller I want to put information about what the controller is doing (the progress - simple sentences describing what it is doing -) and show this view.
The submit button is not within a form and the code for the submit button is:
In onclick button I do not know how to pass the radio buttons and checkboxes state to the controller nor once in the controller I do not know how to show the progress of the tasks doing by the controller in the view linked whith the controller.
I am completely lost.... sorry I am completely new in web application programming... I will highly appreciate is anybody can guide me in the right direction to get rid of this.
Some piece of example would be highly apreciated.
Upvotes: 1
Views: 284
Reputation: 1146
Thinking about it, it would suggest to define a ViewObject class that matches all the field (radiobuttons, checkboxes etc) in your form. And then create a specific controller for this view.
Upvotes: 1