Category - Form
Results 1 - 5 of 17
06 Jan 2020 06 Jan 2020 0 Comments  611 Views
ASP.Net  MVC  Form  Model  Core
Here Mudassar Ahmed Khan has explained with an example, how to pass (get) data from View to Controller in ASP.Net MVC Core 2.1.

This article will explain how to create Form Fields using Model class and then pass (get) data from View to Controller using Model class object in ASP.Net MVC Core 2.1.
16 Dec 2019 16 Dec 2019 0 Comments  1250 Views
ASP.Net  MVC  Button  Form
Here Mudassar Ahmed Khan has explained with an example, how to call Controller's Action method with Parameter on Button Click in ASP.Net MVC Razor.

When the Submit Button is clicked, the Form will be submitted and the data inside the Form will be sent to the Controller's Action method as parameter using Model class object in ASP.Net MVC Razor.
16 Dec 2019 16 Dec 2019 0 Comments  739 Views
ASP.Net  MVC  Button  Form
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) data from View to Controller on Button Click in ASP.Net MVC Razor.

When the Submit Button is clicked, the Form will be submitted and the data inside the Form will be passed (sent) to the Controller’s Action method using Model class object in ASP.Net MVC Razor.
16 Dec 2019 16 Dec 2019 0 Comments  536 Views
ASP.Net  MVC  Button  Form
Here Mudassar Ahmed Khan has explained with an example, how to call HTTP POST Action method on Button Click in ASP.Net MVC Razor.

When the Submit Button is clicked, the Form will be submitted and the HTTP POST Action method of Controller will be called in ASP.Net MVC Razor.
16 Dec 2019 16 Dec 2019 0 Comments  701 Views
ASP.Net  MVC  Button  Form
Here Mudassar Ahmed Khan has explained with an example, how to call multiple Action methods using one Single Form in ASP.Net MVC Razor.

One Form in a View can do a POST submission to one Action method in Controller and hence in order to call multiple Action methods using one single Form in a View, a Switch case has to be implemented inside the Action method.

The Switch case detects the clicked Submit button by fetching its Value from the Request.Form collection and the appropriate Action method will be called in ASP.Net MVC Razor.
Results 1 - 5 of 17