Creating Image Gallery With Asp.Net Core 2.1 Web API - AJAX HTTP POST Method

Опубликовано: 30 Сентябрь 2024
на канале: Tech Howdy
423
3

In this video tutorial we will be creating an AJAX HttpPost Method to post our Gallery Data to the Database and create a gallery folder on our server with the Gallery Id as the folder name.
http://techhowdy.com
#AspNetCoreAjax #AspNetAjax #AjaxHttpPost

Project Files Now Available Her -
Process to Create Image Gallery With Asp.Net Core 2.1 Web API And Ajax
http://techhowdy.com/process-to-creat...

What is AJAX ?

Update a web page without reloading the page
Request data from a server - after the page has loaded
Receive data from a server - after the page has loaded
Send data to a server - in the background

How AJAX Works ?

1. An event occurs in a web page (the page is loaded, a button is clicked)
2. An XMLHttpRequest object is created by JavaScript
3. The XMLHttpRequest object sends a request to a web server
4. The server processes the request
5. The server sends a response back to the web page
6. The response is read by JavaScript
7. Proper action (like page update) is performed by JavaScript

For More Info on AJAX Programming - Please refer to this topic -
https://www.w3schools.com/js/js_json_...

FormData Object ?
The FormData interface provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method.

More info on HTM5 Browser Object and API can be found on MDN Web Docs -
https://developer.mozilla.org/en-US/

Music Credits
Track: Razihel - Love U [NCS Release]
Music Provided by NoCopyrightSounds
Watch: https://www.youtube.com/watch?v=OJBxN...
NCS: Music Without Limitations
Free Download / Stream: http://ncs.io/loveu

Track: Alex Skrindo & Miza - Thinkin' [NCS Release]
Music provided by NoCopyrightSounds.
Watch:    • Alex Skrindo & Miza - Thinkin' | Futu...  
Free Download / Stream: http://ncs.io/ThinkinYO