Fetch values from
View in Controller using Form Collection
In this
article I will explain how to fetch data from controls which are on View to
Controller. There are many ways to fetch these values and Form Collection is
the one of them.
In my one of
last article I explained the GET and POST method. And in POST method I showed
that data stored in FORM if Method set as POST. I also explained that data
stored using the controls property Name.
Note: - if you are not aware the
concept of GET and POST in MVC then kindly Click Here.
As we know
that if our method set as POST then all data stored in Form so we can access
this data on our controller using FormCollection.