CRUD Operations In MVC Using Jquery Ajax | Part-3 Data Save,Update & Delete In Database
HTML-код
- Опубликовано: 8 фев 2025
- Blog Post Link
→
Full Project Download Link : drive.google.c...
"CRUD Operations In MVC" Using Jquery Ajax Part-3
======================================================
In This Video Tutorial I Am Going To Show You,
Basic CRUD Operations Using Jquery Ajax And Modal Popup In Asp.net MVC , Complete Full Crud Operation In 3 Part,This Is Part-3(Last Part), If You Complete It,You Can Create A MVC Project,I Assure You This Is Most Valueable Tutorial For You And This Is A Best CRDU Tutorial In RUclips, So don't Miss This Tutorial
====================================================
Part -1
CRUD Operation In MVC | Using Jquery Ajax | Part-1 Retrieve Database Data & Show In A View
Video Link : • CRUD Operations In MVC...
Part -2
CRUD Operation In MVC Using Jquery Ajax | Part-2 Create A popup Modal With Registration Form And Show It For Client Side
Video Link : • Create Popup Model Wit...
Part -3(Last Part)
CRUD Operations In MVC Using Jquery Ajax | Part-3 Data Save,Update & Delete In Database
Video Link : • CRUD Operations In MVC...
====================================================
I Hope This Is A Nice Tutorial For You And You Enjoy This Video , So Must Watch This Video ✪ ✪ ✪
Part -13
Working Process :
00:03
Show Expected Output For Part-3
01:45
Step 1 : : Receive User Inputed Data & Pass It View To Controller
03:06
Step 2 : : Add New Method in Your Controller For Receive Data And Save In Database
09:37
Step 3 : : Create A popUp Modal For Delete Confirmation Message
14:09
Step 4 : : Show A popup Modal With Delete Confirmation Message
15:13
Step 5 : : Pass Select Data From View To Controller
16:41
Step 6 : : Receive Select Data From View And Change Database IsDeleted=True
18:53
Step 7 : : Now Remove Selected Data From View
19:14
Run Project
Connect With Us:
Facebook: / abctutorialbd
Twitter: ab....
GooglePlaus: plus.google.co....
Subscribe And Watch The Video Again:
• CRUD Operations In MVC...
Tags:
Datatables,asp.net mvc,crud operation,jquery datatable crud operation,implement CRUD operation in Datatables,create retrive update delete in jquery datatable,crud operations in mvc using entity framework code first,crud operations in mvc 4 using jquery ajax,jquery datatable crud example,crud operation in mvc using json
This is indeed the best CRUD Ajax tutorial on RUclips! Of all the MVC videos I've seen, yours is the best to implement in my project
Glad it helped!
Wow, it is a very good video
I succeeded as a very good example
Please continue publishing on the new class
Yes I have just changed server name in web.config and its working. Thank you. Very good project help.
Thank you so much for your tutorial. It really helped me with my first project. Hope next tutorials have the voice on.
Thxs keep subscribe ...... Now we are creating video with voice ...... Thnxs
Thanks for your tutorials videos
Thank you ... Keep subscribe
Thanks abctutorial, great videos which explain us very good
Welcome ........ Keep subscribe ... we are coming with more exciting videos
Thank you very much.
I am from Indonesia.
Welcome keep subscribe... More tutorial has in my channel and will be more.. Stay with us
@@abctutorial Yes
Thank you bro.. :P
You're welcome!
very good T tanx alot
Thank you for your comments... More exciting videos coming soon... Stay connected with us
Very Nice Tutorial. I would like you to provide Part-4 including Sorting, Pagination and Searching. is it possible do it as soon as possible? Or do you think that is easy even to me Beginer in this staff
We have a paging video on different video.So you can watch this video ........... Keep us subscribe ..........
Ok...
thanks a lot :D
You're welcome!
Great Video Sir, .. i would appreciate if you could guide us with validation on popup , like empty name etc.
Will upload soon
You Very Good man it's the best and easist but, where is the validation it's very difficult with this code?
Do you needed simplest one?!
@@abctutorial Yes
Hi, thanks a lot for the tutorial, it is very informative. how to add a loader to each server call ...
Thanks... Dear learner please go to my website abctutorial.com and post your tutorial request on community page and i will make this tutorial soon.... Keep subscribe
when do update data department is change the value in database why?
In which situation ?
abctutorial when change value in dropdown i change math to Arabic the result of change math deleted and arabic repait value
Twice in dropdown
After recording the information in the video, is the complete form refreshed? this is correct?
Yes.But if you dont want to refresh then you can't have to do this
Thanks for your tutorials!
How can I do the same CRUD operations on modal popups with Server side code and Jquery Datatable?
Request me. I will make some videi for you. Subscribe please
bro after deleting its not able to do add we need to close the browser then insertion is possible.how to overcome this
Please put your request to www.abctutorial.com/community
HI ! I am facing the issue related to delete the data. Data's delete flag changed but row is still display in view. Its not remove from view. I am stuck i verify with your code twice but cant able to solve it. Please help me ASAP.
Please check your console that what error is showing
Hi!!! Excellent videos ;). At this moment i'm having problems with the editing. It adds the row instead of doing the necessary changes. I think when it starts the SaveDataInDatabase the value of StudentId is always 0. But not sure. Can you help me with this issue?
Thanks in advance.
You Can Try Below Code In Your Index View, I Hope Solve Your Problem. If you still facing problem please mail us your project :: abctutorial.com@gmail.com
function AddNewStudent(StudentId) { //May Be You Miss This Two Line
$("#StuId").val(0);
$("#DropDwn option:selected").text("--Select Dept--");
}
function EditStudentRecord(StudentId) {
$.ajax({
success: function (data) {
//May Be You Miss This Line
$("#DropDwn option:selected").val(obj.DepartmentId);
}
})
}
Hi may I know how to apply dataTable bcs I have tried but kept getting error ajax error. Do you mind to assist me on where to put the scripts and link?
Keep subscribe.
Please add post for solution to our community
facebook.com/groups/1277069242439068/
Hi thanx sir for this tutorial all the function are work prfectly but the delete button its does delete from the browerser but the data in the database still thier why ?
Data delete is a bad thinking... So in this project we using data hiding process.. that's mean data is still in database but user can not see this
ah so you saying we dont have to delete tha data from the database i got it if you by any chance have voices in ur channel plz explaing the crud in details espically Jquery Part Thanx for ur hard work sir
Thxs....also facebook does not delete our message though we are deleting our message from inbox,they just keep status zero of the data..... We are coming with voice .... .. So keep us subscribe .........
Hello Sir, when I download and run your project on my pc it shows below error .
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Can you please help me?
Your project is not connecting with your database .. Keep subscribe
Without using razor how to use with the normal HTML code to save and update
Yes i never used any razor here
hey tell me about required validator jquery
Hi ! excellent video...At this moment i'm having problems with the editing. It adds the row instead of doing the necessary changes. I think when it starts the SaveDataInDatabase the value of StudentId is always 0.... .Can you help me..Can you use AnyDesk or teamviewer for my error..Thanks
You Can Try Below Code In Your Index View, I Hope Solve Your Problem. If you still facing problem please mail us your project :: abctutorial.com@gmail.com
function AddNewStudent(StudentId) {
//May Be You Miss This Two Line
$("#StuId").val(0);
$("#DropDwn option:selected").text("--Select Dept--");
}
function EditStudentRecord(StudentId) {
$.ajax({
success: function (data) {
//May Be You Miss This Line
$("#DropDwn option:selected").val(obj.DepartmentId);
}
})
}
Error did not improve ..Code link..I'm Develop real estate automation..thanks
kod linki...Index
paste.ubuntu.com/25395604/
Controller..
paste.ubuntu.com/25395611/
viewmodel
pastebin.ubuntu.com/25395643/
please send your database.....
I sent database thanks....
ok ...... thnxs for sending .......... we are looking ur issue ......... and we will inform u within 24 hours ...... sorry for the delay, our response person is not active in this time.....for more u can contact with us facebook.com/abctutorialbd
how to search filter by student name? please reply
keep subscribe... for search functionality watch this video ruclips.net/video/lChDn1Ti0jI/видео.html
or
ruclips.net/video/aQPZ-Lf_A_4/видео.html
hi. Thank you for the really good tutorial.. However, i had problem to save the new data.. when i click save button, nothing happen and the success window oest show up.. any solution for this?
May be you can not see the entire video properly....Anyway..It is not possible to say that without seeing your file, where did you make a mistake?
I'm guessing... you make a mistake below code
$("#SaveStudentRecord").click(function () {
var data = $("#SubmitForm").serialize();
$.ajax({
type: "Post",
url: "/Home/SaveDataInDatabase",
data: data,
success: function (result) {
alert("Success!..");
window.location.href = "/Home/index";
$("#MyModal").modal("hide");
}
})
})
yea.. i think the mistake is here too.. i checked, but still not found the problem..
this is mine..
$("#SaveStudentRecord").click(function () {
var data = $("#SubmitForm").serialize();
$.ajax({
type: "Post",
url: "/Home/SaveDataInDatabase",
data: data,
success: function (result) {
alert("Success!..");
window.location.href = "/Home/index";
$("#MyModal").modal("hide");
}
})
})
ah.. i found the problem.. it should be $("#SaveUserRecord").click(function () instead of $("#SaveStudentRecord").click(function () ... thank you.. :D
ok great ......... please keep us subscribe ..... we are creating more exclusive videos .........
i hv face same prblm ....please help me out...here is my code.... $("#SaveAuthorRecord").click(function () {
var data = $("#SubmitForm").serialize();
$.ajax({
type: "Post",
url: "/Home/SaveDataInDatabase",
data: data,
success: function (result) {
alert("Success!..");
window.location.href = "/Home/index";
$("#MyModal").modal("hide");
}
})
})
there's another bug ,,if you delete all the records and then add new student so it's starts loading and the data isn't inserted.
Yes brother there have some bug but we had try to know you the main basic.So please if you still face problem then recommend us to where we make for you next ........ Thxs for your comment
Sir ! can you please guide me trough the basics of javascript and jquery because without these languages it's easiest to learn Ajax.
And second thing is,,dude i'd have clearly understood everything if there was a voice.
Thnxs for your suggestion ........ we are coming with voice video so keep us subscribe....
it is inserting null values, kindly tell me how to solve this issue.
Please handle your null using logic like if else.... Or you can create your field nullable
bro modal ni show ho ra everything is ok but dnt know y??
Please check your ID or class name at JS
getting an issue to delete record "when click on confirm nothing happen"
May be you can not see the entire video properly....Anyway..It is not possible to say that without seeing your file, where did you make a mistake?
I'm guessing... you make a mistake below line
"" + "" + "" +
Hey Can you help me? I Got Problem with saveindatabase, i wanna use stored procedure
Let me clear your expectation ....... thnxs
Hey bro, I dont know why my date is showing up as "/Date(1511157600000)/" on my table. The sql datatype is set to datetime and my html tag do you have any idea ?
-------------------------------------------------
for pass value write this code..
$(".date").val($.datepicker.formatDate('dd M yy',new Date(obj.Date)));
Hi I have Send The Project on your mail Solve my Updating Issue
Please tell me where you are facing problem specific ....... keep us subscribe
bro please help me out im stucked at part 2
please tell me your problem briefly
meri jquery reference sai ni tha is liye ho ra tha ut ab problem solve ho gyi ha thanks for your time :)
Thnxs for your comment and you can ask anything by English :) ..... keep us subscribe
nw i will use english from now
thnxs dear ..... keep us subscribe
the date is showing up as "/Date(1511157600000)/" on my table i need your heeeelp please
You can convert your date to date format by using Jquery or moment js
@@abctutorial how can I do this?
@@amarirahlam2170 Keep subscribe and use this method to your javascript
function formatDate(date) {
var d = new Date(date),
month = '' + (d.getMonth() + 1),
day = '' + d.getDate(),
year = d.getFullYear();
if (month.length < 2) month = '0' + month;
if (day.length < 2) day = '0' + day;
return [year, month, day].join('-');
}
@@amarirahlam2170 You can do this with less code in your controller when you save the record..
user.CreatedAt = DateTime.Now.ToString("MM/dd/yyyy h:mm tt");
Could you please provide the source code??
See my video details
ohhk i think u didnt understand my language sorry for that
Its ok bro