Home > MVC > Pass Multiple Parameters From Ajax To MVC Controller



Pass Multiple Parameters From Ajax To MVC Controller

In this article, we will explain how to pass multiple parameters from ajax to MVC controller with an example and sample code.


In this article, we will explain how to pass multiple parameters from ajax to MVC controller with an example and sample code. In this example, we are using the Jquery button click event. on the click, we using Ajax Post Method to send (pass) data.

 

Step -1

Open Visual Studio. Click on the file in the menu and select new Project .

how to pass multiple parameters from ajax to mvc controller

 

Step -2

Select new project type.

how to pass multiple parameters from ajax to mvc controller

 

Index.cshtml

We have provided html code below.

 

Models

 

StockController

 

Screenshot

how to pass multiple parameters from ajax to mvc controller

 




Note: All contents are copyright of their authors.



Comments



Leave a Reply

Comment:*
Email ID:*


Name:*