Introduction

This article shows how to pass data from a view to a controller using:

Html.BeginForm(HtmlHelper, String, String, FormMethod)

In order to post data from a view to the controller, so far we have seen the following two methods:

  1. Using Html.BeginForm() View To Controller Method 1
  2. Using Html.BeginForm() by passing action name and controller name explicitly View To Controller Method 2
In method 3 we pass "FormMethod" inside Html.BeginForm().

Step 1 Step 2

Step 3

Step 4

Step 5

Step 6

Step 7

Step 8

In future articles we will see four more methods to post data using the same example. There is no major differences or say Rocket Science but the intent is to be aware for doing the same thing with various approaches.
I hope you enjoy reading this series!