Send a post from javascript


I have a Create view that has its Action result for the POST, but I want to call it from javascript.

I want to pass the value of a textbox to the controller to be able to handle it and return the Create view again but now with a model already configured and not null. (Because I send the name of a client to the controller, and if it already existed but it was disabled then I want to pass it to the Create view with a return View (model)

I searched and talked about using Ajax, but the truth is that the examples I saw were not very clear to me.

It's very simple what I want, is to send a textbox to a controller from javascript.

What is the simplest way to do it?

asked by Edu 10.11.2018 в 22:12

0 answers