Forms in MasterPage and Views
I have a master page which all my views inherit from. The issue I am having is with the form tag which is created in the master page and then the form tag which is created in view.
Because of the form being inside the master page form, all my postbacks are sent to the controllers Index method and its forcing me to create a new method Index which forces an HttpPost.
Further this is causing problems with routes like: /projects/add/ and /projects/delete/1 where everything is router to the Index Method.
WTF? Am i missing something here?
Remove the form from the master page.
Check some sample videos here to better understand the MVC philosophy.
BTW: In ASP.NET MVC, there is no postback.
In my opinion you really ought to think of MasterPages as layouts and not as functional pages. In fact views do not "inherit" from master pages at all. In traditional Webforms, masterpages are in fact user controls. So I would try to not put base-class functionality into a masterpage. So perhaps that is where some of the confusion comes in.