Part 14- Insert data into database using jQuery AJAX in ASP.NET MVC application

preview_player
Показать описание
In this video you will be able to know how can you save your data using jQuery AJAX post method . Its very simple way to call a server without making whole page to be loaded .

SOCIAL :

Get CODE HERE:

INTRODUCTION :

1.jQuery now a days is widely used client side scripting language .Its very simple to use and easy to understand .

2.jQuery selectors can help you to select the html element and manipulate them .there are several jQuery selectors available in jQuery to access the DOM element .

3.Using .Serialize() method you can collect the form data in a variable and can post to the server It just reduce the writing unwanted code for the each element . Otherwise you need the get the value of each element and post to server in array format .

4.By using input type equal to reset instead of submit you can reset your form after completion of AJAX call .Otherwise you would need to clear each element value .

RECOMMENDATION:

Watch MODEL VIEW,CONTROLLER and bootstrap here

TAGS :
how to create a - website
asp. net mvc
asp .net mvc tutorial
asp. net mvc 4
asp net mvc developer
asp net mvc continuous integration
asp net mvc hosting
model view controller
jquery-ajax Post
$ ajax jquery
jquery ajax tutorial
viewbag
$controller
$model
razor view engine

Рекомендации по теме
Комментарии
Автор

Can we reach 1000 likes on this video. Share this video among your friends and Give your suggestions on which topic I should make videos. Thanks

aapkanigam
Автор

I am working in mvc and angular, shocked to see ur videos, these all are real time videos...good work ashish keeepp it up...and i am willing the angular2

riyazbasha
Автор

Very nice explanation. Thank you for sharing this video and your efforts

sachingreat
Автор

very very very awsm tutorial ....BIG THANKS ASHISH JI

sunpreetsingh
Автор

Thanks a Lot Sir <3 from Bangladesh

sagorfox
Автор

I would have liked an explanation as to WHY using JQuery/AJAX to trigger the save action in the controller is a better method than the one used in the previous tutorials.

duncanmcdonald
Автор

awesome waiting of these kind of videos with JQ

capcuttemplates
Автор

I loved this video .Very easy explanation keep doing good work .Thanks

kirankumari-nzlr
Автор

Nice Video sir.But i need to post html textbox data to xml file node using jquery ajax?
please help me.. Thank you.

veeramuthudotnetveera
Автор

You are good man!, Love your videos... Keep it up

giftatte
Автор

Its simple and awesome. Kee up the good work.

aniljain
Автор

thanks sir for this easy and good tutorial .... i am having a problem ..my $.ajax () code is not working .. simple jquery is working but not ajax code

betalaprasanth
Автор

Ashish in your Program Form Validation is not working without Input type sumit kindly help me to fix this problem please

MuhammadMustafa-kcep
Автор

i am using bootstrap validator with ajax asp.net mvc pop modal form

MuhammadMustafa-kcep
Автор

Thank you so much for the help. This is amazing

maihassan
Автор

is it works only with razor view ? in my case, it's not working.

yogeshgangwar
Автор

what about validation on this page u removed validation code

annuverma
Автор

Hello great video and great series of videos. Thank you.

I think the reason you can not delete a row in Employees table is not that you have foreign key from Departments table. Employees is a child in this case and you can delete a child without deleting a parent. In your video N 13 you showed that EmployeeID is a foreign key in Sites table. That makes Sites a child. If you have enforced those relations with primary - foreign key then you can not delete Employee without deleting the corresponding Sites row or rows. I.e. you can not delete a parent row only, as children rows will become orphaned and nothing will point to them and they will become a redundant baggage.

mocococo
Автор

Hi Ashish,
Thanks a lot for your videos. these are realy needfull. i have an issue while submitting my form in controller model "EmployeeViewModel model" is showing blank not showing the data that i fill in form.

RahulMishra-qqyy
Автор

Hi, thanks for tutorial, how to find loader image under content folder??

tauhidulislam