I am currently using the following:
<input type="submit" id="SaveNew" value="Create" />
which will submit the Create page.
It then calls the Controller:
[HttpPost]
public ActionResult Create(Prog prog)
I have additional information on the screen besides the Model Prog that also needs to be send to the Controller. How do I do this? How is it possible to do something like:
[HttpPost]
public ActionResult Create(Prog prog, var1, var2, var3)
Just name the form elements as the variables in the method signature. Everything should stay in the same form.
Model:
View:
Controller: