Making html form to post data in asp.net. With a web API, however, the response body is usually either empty or contains structured data, such as JSON.
Conversely, POST method attaches data to the requested body. Tech, a la carte. In that case, it makes more sense to send the form data using an AJAX request, so that the page can process the response.The following code shows how to post form data using jQuery.In the previous sections, we sent a complex type, which Web API deserialized to an instance of a model class. Inversely, POST method allows up to 8 Mb variable size. The requests in the POST are managed in the same way as it is managed in the GET method where the spaces are represented in the plus (+) sign and rest characters are encoded in the URL pattern.
The method attribute of the form element gives the HTTP method: