jQuery Ajax In Asp.Net MVC - CRUD Operations Using JSON

Поделиться
HTML-код
  • Опубликовано: 1 фев 2025

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

  • @CodAffection
    @CodAffection  7 лет назад +4

    goo.gl/bPcyXW : Buy me a Coffee
    bit.ly/2yEPlpB : Latest Video on this Same Topic
    bit.ly/36IA1cH : AspNet Core MVC CRUD Operations
    bit.ly/3Pn2S7y : Expense Tracker App in AspNet Core MVC
    bit.ly/403lUVC : MVC Login & User Registration
    bit.ly/39B6xdh : Image Upload in AspNet Core MVC
    bit.ly/30fPDMg : More MVC Tutorials

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

      Thanks man, I also got some, if u need..

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

      my image preview is not coming i have done everything right..........crosschecked the code thrice but still image is not showing in preview please help

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

      bhai is crud program mein table paging kaise karenge...please reply

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

    One of the best tutorials to get started with an MVC application

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

    Excellent video to start with web development in MVC, keep it up sir.

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

      Glad you found the video helpful.

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

    You are a great helpful guy for developers...BOOM................

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

    AweSome work by you sir. Simply followed what ever you were saying and implemented the exact with other example. Thanks lot for your videos.

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

      thanks for stopping by and for leaving this wonderful feed back.

  • @2005Azm
    @2005Azm 7 лет назад +4

    Thank you Sir! This is exactly what I was looking for ! Respect!!

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

    Best MVC videos... Nice content. Keep it up Sir.

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

    This is best video to learn things easily , it gave me a confident that i can work down easily on mvc . thank u very much as a beginner its very usefull

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

      I am glad you found the video helpful.

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

    wowowowow eng ,this tutorial is so awesome thank eng and please dont stop this tutorial i realy need it .

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

    Excellent mvc video tutorial on youtube.........plz upload code first approach with store procedure.....in many interviews i have been asked by interviewer

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

    Thank you so much.
    This is what I've founded for a long time.
    Just Perfect.
    Thanks so much again to share your thing.

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

      I am glad, You found the video helpful.

  • @sefatanam
    @sefatanam 5 лет назад +4

    Thanks a lot, I do this project by myself 🙂

  • @d.choudhary2705
    @d.choudhary2705 6 лет назад

    Your demo very great and helpful as professional level. I appreciate it.
    As you know real time sceniro projects we need PDF report, displaying dynamic charts in page, notification, cascading drop down etc. Request you to please make videos on that ASAP. Without it project can't be completed. You also make small project and try to explain all that's very good options.
    Please carry on your channel soon become more n more popular.

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

      Thank you Dinesh.
      For more MVC tutorial check this : ruclips.net/p/PLjC4UKOOcfDSAIwNEZmHtTTKf1F3UxfBk

    • @d.choudhary2705
      @d.choudhary2705 6 лет назад

      Dotnet Mob thanks dear. You have any plan to make small demo project using web API with angular 5 for web application.

    • @d.choudhary2705
      @d.choudhary2705 6 лет назад

      Dotnet Mob thanks

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

    Very good publication, thank you very much for your time and effort, interesting subject and very well explained.

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

      I am glad you found the video helpful and thanks for the support.

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

    Excellent bro, I do practice these examples in my laptop, thanks for help and keep uploading more exercises so that it will useful to me very muchhhhh.

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

    Very informative. This is what i am looking for. Thank you very much

  • @jeevanshinde1104
    @jeevanshinde1104 Год назад

    Thank You Sir, Your Work is Very Inspiring to me.

  • @boyinavikash1459
    @boyinavikash1459 7 лет назад +2

    Firstly thank you for publishing.......
    But, a small thing......better to put some more controls like calendar control for age, dropdown lists for cascading process,.....
    Please take this as a suggestion....
    Thanks.

  • @BrilianArdiKusuma
    @BrilianArdiKusuma 3 года назад

    Thank u so much for this awesome tutorial! Keep going!

  • @rajamahin6633
    @rajamahin6633 3 года назад

    It would be very helpful if you had made different topic wise sections in the video.
    Apart from that Great Work!

    • @CodAffection
      @CodAffection  3 года назад

      Thanks for the suggestion, next time, I will consider that.

  • @PraveenKumar-ft2kr
    @PraveenKumar-ft2kr 6 лет назад +2

    This video is really very very helpful.. Thank you so much sir😀. Keep making awesome videos like this 🤗😀😀

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

      My pleasure & Wish You Good Luck.

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

    Thank you !!! , just what I was looking for

  • @roshanirajput2228
    @roshanirajput2228 2 года назад

    Very helpful thank you so much 😊

  • @gokhanatlgan6030
    @gokhanatlgan6030 6 лет назад +3

    Thank you for the great videos. You would make a drop-down list instead of image processing. You show us how to select a category and how to fill out the drop-down menu.

    • @galaxy1066
      @galaxy1066 2 года назад

      gokan yapma allah askina. bildigim 2 gram ingilizceyi unuttum

    • @gokhanatlgan6030
      @gokhanatlgan6030 2 года назад

      @@galaxy1066 Çeviri bu kadardı 3 yıl önce 😂

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

    Great video, thank you for your great efforts.

  • @innocentsizwe7509
    @innocentsizwe7509 3 года назад

    Thee best just started with C#

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

    That 's awesome.Learn a lot. Thank you very much.

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

      Glad you liked it!, keep learning and sharing.

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

    Thank you so much for sharing this valuable information.

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

    Thank you, we wait now how to do all this in .net core mvc.

  • @pradeepkumar-dd2wi
    @pradeepkumar-dd2wi 4 года назад

    thanks for the video . It helped me a lot .

  • @Faisal.Software
    @Faisal.Software 6 лет назад

    Great Video, wish you all the best

  • @serkan6818
    @serkan6818 2 года назад

    First of all Thank you very much. I have a problem in adding View. (17:07). When I right click I can't see add View section. Do you have any idea about it?

    • @serkan6818
      @serkan6818 2 года назад

      ok. I have just solved it when I restart my Visual Studio.

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

    Gracias por tu aporte.
    Me ayudo mucho

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

    Thanks for the Help! Keep up the Good work :)

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

    Thank you for this great Tutorial

  • @mrafaqatpk
    @mrafaqatpk 2 года назад

    just amazing and wonderfull

  • @kevinjosephnovealmodiel3809
    @kevinjosephnovealmodiel3809 3 года назад

    Thanks for the video . I would like to ask where did you get your DBModel?

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

    You are So So cooool , perfect , Thanks a lot Sir

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

    excellent explanation dear... thx alot. please try to make a video for making bar, pie, line chats also with the same technology please

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

      try these tutorials :
      ruclips.net/video/1ys3lyMOaKw/видео.html
      ruclips.net/video/E3S6XdAuqTU/видео.html

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

    Really very helpfull to me thank you.

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

    thumps up.
    plz do some push notification with signal R.
    r some signal R examples..itz a very humble request to you.
    i watched your videos that was awesome.
    keep it up..
    thankx.

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

      thanks for the support, As per your request I will do a video on Signal R

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

      Dotnet Mob do some videos on signal ir real time application(push notification system)

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

    nice and very helpfully tutorials...

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

    A very helpful Tutorial Sir,
    Please can you include a Tutorial for
    Dates (Calendar)
    Radiobuttons/Checkboxes
    Dropdowns
    Thank you

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

    Great demo. thanks

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

    Well done. However, the spinner does not work in chrome - works everywhere else. Is there a work around for chrome?

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

      Any error message ?

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

      Nope. Silent fail. I am using Chrome Version 67.0.3396.99. I have had this kind of failure before a couple of years ago, it cost me a lot of pain, and I learned that it is some kind of Chrome bug which will be sorted out in the future. Maybe my version of Chrome is not upto date. I left the comment so as to help any other students if they are facing the same.

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

    Sir I enjoyed your video tutorial helpful, but sir do you offer online training or help on asp project?

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

    Thanx alot very useful tutorial

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

    great video. thanks for sharing

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

    thank you. very helpful.

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

    Hello. Please help me.
    After entering the edition and not entering any photo and saving it shows the error: System.NullReferenceException: ImageUpload.get returned null.

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

    this is a wonderful crud opeartion using jQuery ajax thanks you so much, this video is helpful..but the last part of this video on spin loader didn't work on my own, is there any script file you added and failed to show it on the video please help? i have done all what you did in video yet it didn't work, i have copy and paste the the div class on layouts.cshtml, past the css on the site.css and the fuction script on the scripts.js . all these i ahve done yet not working..

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

    Firstly thank you for publishing
    But. I hope you have some video about Authorization and authentication with identity. Thank so much

  • @grbsql
    @grbsql 3 года назад

    Excelente. Muchas gracias

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

    Thanks for your tutorial..... can you join two table in simple form

  • @MultiRealT
    @MultiRealT 3 года назад

    Dot Net Mob is a great Mob in Town

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

    Thank you sir.

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

    tnx very much awesome clarification

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

      I am glad you found my work helpful. thanks for the comment.

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

    Thanks a lot sir 🙏🇮🇳

  • @또랑이-x9h
    @또랑이-x9h 3 года назад

    so great! thx. i have some question,
    where is, and what is the Employee"s"? I made db table name is Employee, mabye that's right??
    i'm so Curious!

    • @sangeethakannan1041
      @sangeethakannan1041 3 года назад

      Employees is the name of dbset in the context file...check the context file in model folder

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

    Everything worked fine...

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

    Just an observation, if you reload the page in the Add New tab, an existing data is automatically populated to the input boxes. How would you fix that?

  • @salmanzahir9485
    @salmanzahir9485 7 лет назад +3

    Hello DotnetMob. Can you please make a tutorial for CRUD operation of ASP.NET CORE 2.0?

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

      yes I will try

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

      Please do it in Visual Studio and if possible....please do it with the SPA template also

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

      they are replaced by ViewComponents in .net core 2.0 .

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

    Is it possible instead of directly inserting the new data into the database, bulk insert all the data inserted in the datatable by using a single SUBMIT button at the bottom of the Datatable?

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

    I have a really strange problem everything works accept for the adding and editing. When i add or edit a record a json page is show instead of the view. It's like it doesn't recognize the "ViewAll " in the return Json( ...... );. The records are added and edited successfully, but i have to manualy type in the URL to the employee index page after add or update.

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

      try this : stackoverflow.com/a/13277616/4133590
      if not workingplease download and compare the demo project.

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

    very useful

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

    You ROCK! :D one problem. After editing connection strings here and there - updating model and so on.
    All set! But in the EmployeeController I can't see the ImageUpload method/function.
    So emp.ImageUpload does not contain a definition... are you missing an assembly reference?
    Why does this happen? I would assume it's the function "ShowImagePreview" in AddorEdit.cshtml it can't see.

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

      did you download the sample project.

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

      Yes. Wondering if something is missing after I update the model. EmployeeController is not able to see the ImageUpload

    • @1996louie
      @1996louie 6 лет назад

      Had the same problem turned out that in Models/Employee.cs there needed to be some more libraries used. Solved the situation by copying the code from the downloaded project.

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

      Felix Mircea but I already have the downloaded project and are using the relevant namespace for the Image upload method. The method is there, but can see it. Can use use all other methods from the lib thou

    • @1996louie
      @1996louie 6 лет назад

      In my case the downloaded application would have to be updated to work so in order to solve the error code had to be written/copied in a new project

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

    Great 👍

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

    Thank you.

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

    thanx a lot, but if you write Employee/Delete?id=1 to address bar, no notification is returned. Or Employee/AddorEdit

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

    Hey, another one great video!
    I have one problem..After inserting the edit option..on submiting, It redirects me to the JSON file in browser with its code, it doesnt redirect me to the ViewAll.
    Also,When using redirect to action to ViewAll, shouldn't it be to Index instead? Because ViewAll redirects me to the ViewAll page without the layout and tabs.
    Also, my loader isn't showing at all

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

      the problem may have been with the mvc version. when I downgraded to 5.1.1 it worked with your code..but the problem with the loader is still there..I dont see it at all. I have added the parts in the js,css and layout files

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

      The problem was that in this clip you put the loader divs in the the separate section. When I put them after the footer, or before.everything works fine.
      Thanks a lot, the whole playlist is really helpful and amazing!

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

      Sorry for the late reply. Glad you solved the problem yourself.

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

      hi Dotnet Mob. i am having similar issue.i am using 5.1.1.After inserting or edit..on submiting, It redirects me to the JSON file in browser with its code, it doesnt redirect me to the ViewAll. instead of that i am redirecting it to index.....any help

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

      bro i am having same problem ...plz reply how to solve

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

    If anyone has problems configuring the server, just specify (local) instead of (local)/sqle2012 or what not

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

    Hi, I have a question about your .sql script which you attached to the source code.
    Please, explain how can I use it to make the database identical with yours? Thanks

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

      create the db - jQueryAjaxDB
      and then execute the script file.

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

    hi, Please upload a video on how to set bootstrap admin themes in ASP.NET MVC

  • @jspalding70
    @jspalding70 7 лет назад +2

    Your series is very helpful. Thank you! Do you have a link to the code available?

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

      +Jason Spalding please check video description, it's there

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

    Good man.

  • @jagadishmuntimadugu6278
    @jagadishmuntimadugu6278 3 года назад

    Sir I am following ur video...in this video in script.js in jQueryAjaxPost function i am unable to get validator keyword after $. Should i have any other refrence to get access for that keyword....will u pls clarify this

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

    GOAT

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

    In case using ViewModel Image is not uploading but when i use a simple model every thing is working fine please help me how to fix this issue thanks in advance

  • @No_cause_to_evil
    @No_cause_to_evil 2 года назад +1

    I need this demo

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

    Thenk you .

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

    could you explain more about the 'edit' I have some jquery on the layout page
    it works with the 'Add new' but not with 'edit'. Also the edit pic preview not working.

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

    Hello dotnetmob. I got a huge problem when using select2 dropdownlist in this project. It loads fine for adding a new entry. But when I try to edit the entry, normal dropdownlist loads, not the select2 dropdownlist. Can you please give me a solution?

  • @suryadipmitra5044
    @suryadipmitra5044 2 года назад

    in case of bundleconfig.cs not present in my project then what to do? plz help me sir

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

    what if I want to show a modal dialog box before proceeding with updating a record? Thanks !

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

    thanks

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

    brand man...

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

    Source code: github.com/bikashmstha/jQueryAjaxInAsp.NETMVC

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

    Hi, once I click on the submit button it just directs only with JSON script but does not direct to the view all tab. I even downgraded the MVC version to 5.1 but still I'm redirected to /addoredit destination with the json result :( can you help me out?

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

      resolved it :D

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

      @@SarangaAmaraweera how did you resolve it, I’m having the same issue only when I edit

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

    my image preview is not coming i have done everything right..........crosschecked the code thrice but still image is not showing in preview please help

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

      any console error message ?

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

      @@CodAffection no nothing still it's not showing

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

      @@CodAffection (Error on line 61)
      Object reference not set to an instance of an object.
      Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
      Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
      Source Error:
      Line 59:
      Line 60:
      Line 61: @Html.LabelFor(model => model.ImagePath, htmlAttributes: new { @class = "control-label col-md-2" })
      error on line 61

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

    after ajax post my controller will add the record and redirect me to a blank page like this and won't even reach to success function. it happend to me before when I was following ur other ajax crud tutorials
    {"success":true,"html":"

    \u003ctable ...","message":"Submitted Successfully!"}

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

    Hey, thanks for the nice video, but there is one issue i found with the code is, when you click two times on submit button /enter two times then it enter duplicate record.

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

    How can I populates window user id and current date time to AddOrEdit form. Thx

  • @cambodeeritnews5629
    @cambodeeritnews5629 3 года назад

    would you mind if you start your project with visual basic also? i hope you feel good see my proposal. Big thanks.

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

    why does RenderRazorViewToString not work for me in the GlobalClass

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

    I can´t update the image when I click on "choose file" the image doesn´t change I check the code and it´s the same that on the video

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

      lo resolviste?

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

      I think you just need to call the ID like this.
      onchange="ShowImagePreview(this,imagePreview )"
      it works on my project .

  • @eeshwarpaul9634
    @eeshwarpaul9634 2 года назад

    how to make search functionality using j query from database

  • @СашаБасараб-т2э
    @СашаБасараб-т2э 4 года назад

    Thank you for job) 🙂But have problem that not working with line "fileName = fileName + DateTime.Now.ToString("yymmssfff") + extension;" in AddOrEdit method!
    After coment it - working! Why?)

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

    good

  • @itsupport8363
    @itsupport8363 6 лет назад +3

    worked for me. but instead of return RedirectToAction("ViewAll"); what I used is return RedirectToAction("Index");

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

    I am using Asp.net Core 2.0 MVC . I failed to show the ViewAll page inside the tab. @HTML.Action is no longer available. whats the workaround

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

      I'm facing similar issue here. using asp-action tag helper and returning partial views, not working. but what worked me is that rendering the partial views using jquery/ajax .

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

      replace @html.action to @html.partial