how can i send form data(MVC) with some other values(other field values i.e.(update button text values) fetched using jquery) using ajax post request. i have tried alot also searched alot but nothing found.please help me in it
i want to use above approach for a single MVc action result
e.g. if updatevalue not null update the record otherwise add the record
Mrunali SawantPosted Jun 7, 2024, 12:30 PM
To send form data along with additional parameters using an AJAX POST request in an ASP.NET MVC application, you can follow these steps:
$.ajaxmethod to send the data to the server.Gather Form Data and Additional Parameters Using jQuery:
Configure Your MVC Controller:
Tuhin PaulPosted Mar 9, 2024, 8:21 PM