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

Комментарии • 106

  • @JokingMcSundae
    @JokingMcSundae 3 года назад +1

    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

  • @theunlock3869
    @theunlock3869 5 лет назад +1

    Wow, it is a very good video
    I succeeded as a very good example
    Please continue publishing on the new class

  • @kusumnet
    @kusumnet 5 лет назад

    Yes I have just changed server name in web.config and its working. Thank you. Very good project help.

  • @ernestoorellana344
    @ernestoorellana344 6 лет назад +2

    Thank you so much for your tutorial. It really helped me with my first project. Hope next tutorials have the voice on.

    • @abctutorial
      @abctutorial  5 лет назад

      Thxs keep subscribe ...... Now we are creating video with voice ...... Thnxs

  • @pedromartinez2856
    @pedromartinez2856 5 лет назад +1

    Thanks for your tutorials videos

  • @joseantoniourbinagutierrez4223
    @joseantoniourbinagutierrez4223 7 лет назад +1

    Thanks abctutorial, great videos which explain us very good

    • @abctutorial
      @abctutorial  7 лет назад

      Welcome ........ Keep subscribe ... we are coming with more exciting videos

  • @ibnusadam4952
    @ibnusadam4952 5 лет назад +1

    Thank you very much.
    I am from Indonesia.

    • @abctutorial
      @abctutorial  5 лет назад

      Welcome keep subscribe... More tutorial has in my channel and will be more.. Stay with us

    • @ibnusadam4952
      @ibnusadam4952 5 лет назад

      @@abctutorial Yes

  • @kasunchampika641
    @kasunchampika641 4 года назад

    Thank you bro.. :P

  • @ebrahimalipour3246
    @ebrahimalipour3246 6 лет назад +1

    very good T tanx alot

    • @abctutorial
      @abctutorial  6 лет назад

      Thank you for your comments... More exciting videos coming soon... Stay connected with us

  • @hilariosimoes7776
    @hilariosimoes7776 6 лет назад +2

    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

    • @abctutorial
      @abctutorial  6 лет назад +1

      We have a paging video on different video.So you can watch this video ........... Keep us subscribe ..........

    • @hilariosimoes7776
      @hilariosimoes7776 6 лет назад

      Ok...

  • @blarydiboy4605
    @blarydiboy4605 4 года назад

    thanks a lot :D

  • @xiumax
    @xiumax 4 года назад

    Great Video Sir, .. i would appreciate if you could guide us with validation on popup , like empty name etc.

  • @ahmedfetouh3361
    @ahmedfetouh3361 4 года назад +1

    You Very Good man it's the best and easist but, where is the validation it's very difficult with this code?

  • @carloskanika9466
    @carloskanika9466 5 лет назад +2

    Hi, thanks a lot for the tutorial, it is very informative. how to add a loader to each server call ...

    • @abctutorial
      @abctutorial  5 лет назад

      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

  • @fullstack7263
    @fullstack7263 4 года назад +1

    when do update data department is change the value in database why?

    • @abctutorial
      @abctutorial  4 года назад

      In which situation ?

    • @fullstack7263
      @fullstack7263 4 года назад

      ​ abctutorial when change value in dropdown i change math to Arabic the result of change math deleted and arabic repait value
      Twice in dropdown

  • @pablos.r1305
    @pablos.r1305 5 лет назад +1

    After recording the information in the video, is the complete form refreshed? this is correct?

    • @abctutorial
      @abctutorial  5 лет назад

      Yes.But if you dont want to refresh then you can't have to do this

  • @earlwood7826
    @earlwood7826 5 лет назад +2

    Thanks for your tutorials!
    How can I do the same CRUD operations on modal popups with Server side code and Jquery Datatable?

    • @abctutorial
      @abctutorial  5 лет назад +1

      Request me. I will make some videi for you. Subscribe please

  • @santhoshkumar7888
    @santhoshkumar7888 4 года назад +1

    bro after deleting its not able to do add we need to close the browser then insertion is possible.how to overcome this

    • @abctutorial
      @abctutorial  4 года назад

      Please put your request to www.abctutorial.com/community

  • @priyalbrahmbhatt6093
    @priyalbrahmbhatt6093 6 лет назад +1

    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.

    • @abctutorial
      @abctutorial  6 лет назад

      Please check your console that what error is showing

  • @jackymanson7003
    @jackymanson7003 7 лет назад +1

    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.

    • @abctutorial
      @abctutorial  7 лет назад

      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);
      }
      })
      }

  • @iyliamajid730
    @iyliamajid730 4 года назад +1

    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?

    • @abctutorial
      @abctutorial  4 года назад

      Keep subscribe.
      Please add post for solution to our community
      facebook.com/groups/1277069242439068/

  • @khalidshalabi9567
    @khalidshalabi9567 6 лет назад

    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 ?

    • @abctutorial
      @abctutorial  6 лет назад

      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

    • @khalidshalabi9567
      @khalidshalabi9567 6 лет назад +1

      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

    • @abctutorial
      @abctutorial  6 лет назад

      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 .........

  • @kusumnet
    @kusumnet 5 лет назад +1

    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?

    • @abctutorial
      @abctutorial  4 года назад

      Your project is not connecting with your database .. Keep subscribe

  • @santhoshkumar7888
    @santhoshkumar7888 4 года назад +1

    Without using razor how to use with the normal HTML code to save and update

    • @abctutorial
      @abctutorial  4 года назад

      Yes i never used any razor here

  • @blarydiboy4605
    @blarydiboy4605 4 года назад

    hey tell me about required validator jquery

  • @ilhandemirtepe8335
    @ilhandemirtepe8335 7 лет назад

    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

    • @abctutorial
      @abctutorial  7 лет назад

      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);
      }
      })
      }

    • @ilhandemirtepe8335
      @ilhandemirtepe8335 7 лет назад

      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/

    • @abctutorial
      @abctutorial  7 лет назад

      please send your database.....

    • @ilhandemirtepe8335
      @ilhandemirtepe8335 7 лет назад +1

      I sent database thanks....

    • @abctutorial
      @abctutorial  7 лет назад

      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

  • @abbasghaith2799
    @abbasghaith2799 5 лет назад +1

    how to search filter by student name? please reply

    • @abctutorial
      @abctutorial  5 лет назад

      keep subscribe... for search functionality watch this video ruclips.net/video/lChDn1Ti0jI/видео.html
      or
      ruclips.net/video/aQPZ-Lf_A_4/видео.html

  • @amal5165
    @amal5165 7 лет назад +1

    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?

    • @abctutorial
      @abctutorial  7 лет назад

      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");
      }
      })
      })

    • @amal5165
      @amal5165 7 лет назад

      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");
      }
      })
      })

    • @amal5165
      @amal5165 7 лет назад +1

      ah.. i found the problem.. it should be $("#SaveUserRecord").click(function () instead of $("#SaveStudentRecord").click(function () ... thank you.. :D

    • @abctutorial
      @abctutorial  7 лет назад

      ok great ......... please keep us subscribe ..... we are creating more exclusive videos .........

    • @ziniarahman9549
      @ziniarahman9549 7 лет назад +1

      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");
      }
      })
      })

  • @nasrullahalishah537
    @nasrullahalishah537 6 лет назад +1

    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.

    • @abctutorial
      @abctutorial  6 лет назад

      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

    • @nasrullahalishah537
      @nasrullahalishah537 6 лет назад

      Sir ! can you please guide me trough the basics of javascript and jquery because without these languages it's easiest to learn Ajax.

    • @nasrullahalishah537
      @nasrullahalishah537 6 лет назад +1

      And second thing is,,dude i'd have clearly understood everything if there was a voice.

    • @abctutorial
      @abctutorial  6 лет назад

      Thnxs for your suggestion ........ we are coming with voice video so keep us subscribe....

  • @theprogammerguy2023
    @theprogammerguy2023 5 лет назад

    it is inserting null values, kindly tell me how to solve this issue.

    • @abctutorial
      @abctutorial  5 лет назад

      Please handle your null using logic like if else.... Or you can create your field nullable

  • @mishimishu2765
    @mishimishu2765 7 лет назад +1

    bro modal ni show ho ra everything is ok but dnt know y??

    • @abctutorial
      @abctutorial  7 лет назад

      Please check your ID or class name at JS

  • @mukeshdepani8367
    @mukeshdepani8367 7 лет назад

    getting an issue to delete record "when click on confirm nothing happen"

    • @abctutorial
      @abctutorial  7 лет назад

      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
      "" + "" + "" +

  • @xxxDtentacion
    @xxxDtentacion 6 лет назад

    Hey Can you help me? I Got Problem with saveindatabase, i wanna use stored procedure

    • @abctutorial
      @abctutorial  6 лет назад

      Let me clear your expectation ....... thnxs

  • @KL-qe7zr
    @KL-qe7zr 7 лет назад

    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 ?

    • @abctutorial
      @abctutorial  7 лет назад

      -------------------------------------------------
      for pass value write this code..
      $(".date").val($.datepicker.formatDate('dd M yy',new Date(obj.Date)));

  • @avinashgupta7651
    @avinashgupta7651 6 лет назад +1

    Hi I have Send The Project on your mail Solve my Updating Issue

    • @abctutorial
      @abctutorial  6 лет назад

      Please tell me where you are facing problem specific ....... keep us subscribe

  • @mishimishu2765
    @mishimishu2765 7 лет назад +1

    bro please help me out im stucked at part 2

    • @abctutorial
      @abctutorial  7 лет назад

      please tell me your problem briefly

    • @mishimishu2765
      @mishimishu2765 7 лет назад +1

      meri jquery reference sai ni tha is liye ho ra tha ut ab problem solve ho gyi ha thanks for your time :)

    • @abctutorial
      @abctutorial  7 лет назад

      Thnxs for your comment and you can ask anything by English :) ..... keep us subscribe

    • @mishimishu2765
      @mishimishu2765 7 лет назад

      nw i will use english from now

    • @abctutorial
      @abctutorial  7 лет назад

      thnxs dear ..... keep us subscribe

  • @amarirahlam2170
    @amarirahlam2170 5 лет назад +1

    the date is showing up as "/Date(1511157600000)/" on my table i need your heeeelp please

    • @abctutorial
      @abctutorial  5 лет назад

      You can convert your date to date format by using Jquery or moment js

    • @amarirahlam2170
      @amarirahlam2170 5 лет назад +1

      @@abctutorial how can I do this?

    • @abctutorial
      @abctutorial  5 лет назад

      @@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('-');
      }

    • @earlwood7826
      @earlwood7826 5 лет назад

      @@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");

  • @tw5529
    @tw5529 5 лет назад +1

    Could you please provide the source code??

  • @mishimishu2765
    @mishimishu2765 7 лет назад +1

    ohhk i think u didnt understand my language sorry for that