Advanced AJAX CRUD in ASP.NET Core MVC and Dynamic Cascading Selectlist

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • Advanced AJAX CRUD in ASP.NET Core MVC and Dynamic Cascading Select list
    In this ASP.NET Core Tutorial,
    We will learn how to Create Cascading Select List.
    and populate the selectlist dynamically using AJAX.
    The first select dropdown list has Country Names.
    and the second selectList has City Names. when we select a Country From the Country Selectlist the cities of the Selected Country will be loaded
    in the cities selectlist from the Database using the AJAX Call.
    I have Used AJAX and Partial views to create this Application.
    AJAX (Asynchronous JavaScript and XML) in the Web Application is used to update parts of the existing page and to retrieve the data from the Server asynchronously.
    AJAX improves the performance of the Web Application and makes the Application more interactive.
    Bootstrap is one of the most popular HTML, CSS and JS frameworks for developing responsive, mobile first projects on the Web.
    In this Application you will learn how to do Partial refresh of the Listing Screen and avoid the loading of Lists after the CRUD operations from the database.
    Please watch the full video and put your valuable suggestions in the comment box.
    Thank You.
    Best Regards,
    Aniz

Komentáře • 56

  • @akelacredente5134
    @akelacredente5134 Před rokem

    Anisz You are not just passing Knowledge but you are also saving lives... My appreciation is unmeasureable.

  • @TheAbushamel
    @TheAbushamel Před 9 měsíci

    Always , you're best of the best , strong knowledge , prefect explain and advanced exercises.

  • @softer.prakashmishra8040
    @softer.prakashmishra8040 Před 7 měsíci

    Thank you so much for improving my knowledge and skills
    it's a more important topic for me and I'm speechless of your work

  • @purnarana9081
    @purnarana9081 Před rokem +1

    Very Nice Video. Thank you sir

  • @nazihjrg3540
    @nazihjrg3540 Před rokem +1

    dear brother thnk you so much for your priceless tutorials, but i need ask you to provide tutorial for creating rdlc report , i will be much appreciate to you,

  • @surya.banerjee
    @surya.banerjee Před rokem

    Very nice tutorial and step by step explanation 👍
    Subscribing to learn more from you ❤
    Waiting for your next videos for managing stock for the same. Thank you so much ❤

  • @franklint8301
    @franklint8301 Před rokem

    Good and deep work. Thank you.

  • @DastanSarayeOfficial
    @DastanSarayeOfficial Před rokem +1

    informative

  • @mocococo2877
    @mocococo2877 Před rokem

    Thank you and greetings from Bulgaria.
    Following your code closely and your tutorial, not very closely, I noticed that you do not have List or IEnumerable in the City model for students. One City can have many students.
    Same for goes the Country. One Country can have many cities.
    Since I am somewhat midd level but with many gaps, please help. Why was that ??
    Thank you.

  • @user-vc8qq7eb6k
    @user-vc8qq7eb6k Před 6 měsíci

    Very Good video. I could not find the text file in which the codes are written. Could you please give a link?

  • @wifi779
    @wifi779 Před rokem

    Greate veido , thanks

  • @cissemy
    @cissemy Před 6 měsíci

    Thanks
    Let's we have 200 countries in the list , is it possible to search the country by name or code instead of scrolling a long list ?

  • @patelujjaval7026
    @patelujjaval7026 Před 3 měsíci

    Sir this project is very good and helpful for my training session...so thank you sir...
    Please sir send the zip file this project
    Given zip file is not found
    Please sir share your source code...

  • @randybryant6277
    @randybryant6277 Před rokem +2

    Hi! I'm having two problems with this tutorial that I can't figure out. First, when I try to edit a customer record, as soon as I click the 'Edit' button, the text box for the filename is highlighted in blue and nothing happens. I think this is some kind of client side problem because I put a breakpoint in the HttpPost Edit action and it was never hit. There is an image associated with the record and it appears in the Profile Photo box. My second problem is that I can't delete a customer record. I get an error, "Cannot insert the value null into column 'Code', table 'Household.dbo.Countries'; column does not allow nulls. INSERT fails..... (I used an existing 'Household' database.

    • @randybryant6277
      @randybryant6277 Před rokem

      Update - Started over from scratch and edit now working but still having same problem deleting a customer. I've spent hours searching for solution. Any help would be appreciated. An actual delete was not demonstrated in the tutorial so not sure code is correct.

    • @CodeSbyAniz
      @CodeSbyAniz  Před rokem +1

      _context.Attach(customer);
      _context.Entry(customer).State = EntityState.Deleted;
      _context.Entry(customer.City).State = EntityState.Detached;
      _context.Entry(customer.City.Country).State = EntityState.Detached;
      _context.SaveChanges();
      return RedirectToAction(nameof(Index));

    • @alfatihflowlesk4010
      @alfatihflowlesk4010 Před rokem +1

      @@CodeSbyAniz guys if this code of the instructor didn't work try this it will work
      _context.Attach(customer);
      _context.Entry(customer).State = EntityState.Deleted;
      _context.Entry(customer.City.Country).State = EntityState.Detached;
      _context.SaveChanges();
      return RedirectToAction(nameof(Index));
      this worked will and the row deleted successfuly

    • @ocha736
      @ocha736 Před rokem

      ​@@alfatihflowlesk4010 thanks. It works.

  • @janbenedictcacho1979
    @janbenedictcacho1979 Před rokem +1

    Please create dynamic menu with submenu so my code will not hard coded..
    Thank you..

  • @cariot40
    @cariot40 Před rokem

    Hello, I tried your Video because im a newbie, but since the Modal I have not understand the Steps because there is someting Wrong..in Video you call function as Coutries not as Countries, then you put one function called cityCreateModal into side.js under a function ShowCountryCreateModal, where I not have seen, that it was Copied. In the Video sinc 1:21:12 beginning there is something wrong because I have tried to do the same as you, but i can not insert a Customer (Country) like your video...can you help me please?

  • @arif946
    @arif946 Před 10 měsíci

    Sir from where we can see the inward and outward videos of transaction

  • @ahmedkilinc78
    @ahmedkilinc78 Před rokem

    Bro thank u so much but Column Country is empty. How can i fill the column country after select country in create or edit?

    • @CodeSbyAniz
      @CodeSbyAniz  Před rokem

      You are most welcome, Please watch again, complete source is given with the video. follow the steps shown. you can make it.

  • @weldingmachinery
    @weldingmachinery Před rokem

    Hi there just wondering about the token that is on the post controller methods to prevent a cross script attack. Do you think it is important security wise, is this necessary and is there a simple way to get this to work when uising the MCV razor AJAX helper methods. I see some posts on the internet where the token can be included in a seperate jquery script at the end of the cshtml file. In summary is the token necessary and what is the best way/most straightforaward way to include it into partial razor views where the AJAX mvc helpers are used. I want to stay away from separate script sections in views where possible, defeats the purpose of the Razor Ajax helpers and also no doubt there will be conflicts I am sure between the ajax mvc helpers and a seperate script section in the same AJAX post from the view

    • @CodeSbyAniz
      @CodeSbyAniz  Před rokem

      Thanks for the Idea. will do a tutorial on it in the future.

  • @086sayem
    @086sayem Před rokem +1

    very nice video, thanks and need the source code please

    • @CodeSbyAniz
      @CodeSbyAniz  Před rokem

      Source code link and steps are shown in the video

    • @danielspurrell
      @danielspurrell Před rokem +1

      its been over 2 weeks but the source code is at 6:27 in the video, hope you are well

  • @MohamedHassan-qp1bz
    @MohamedHassan-qp1bz Před rokem

    Thank you, great job. Where can I find your code.

    • @CodeSbyAniz
      @CodeSbyAniz  Před rokem

      You are welcome, supporting source code link is shown in the video.

  • @TogetherUs143
    @TogetherUs143 Před rokem

    Sir, In the video, Where the source code link ? kindly refer the code

    • @CodeSbyAniz
      @CodeSbyAniz  Před rokem

      link is shown in the video please watch without skipping. thanks for watching.

  • @taufikfauzi3859
    @taufikfauzi3859 Před rokem

    why column country in city is empty?

    • @CodeSbyAniz
      @CodeSbyAniz  Před rokem

      may be you skipped some parts of the video. it is working fine for me.

  • @user-vl5ut7ml9o
    @user-vl5ut7ml9o Před rokem +1

    Github Link Please

  • @mdobaydullah360
    @mdobaydullah360 Před 7 měsíci

    Please send this source code.

  • @AhmedTXT
    @AhmedTXT Před 11 měsíci

    brother could you please attached project

  • @deepshikhakushwaha2530

    Hi sir where we can find source code of this project

    • @CodeSbyAniz
      @CodeSbyAniz  Před rokem

      please check, the link is very much working.

  • @southfitness7567
    @southfitness7567 Před rokem

    Where is the source code link

  • @mianawais98
    @mianawais98 Před 11 měsíci

    Where is the Source Code Link??

  • @nguyentuananh4078
    @nguyentuananh4078 Před rokem

    Where is the source code?

  • @diamondphilip1045
    @diamondphilip1045 Před rokem

    Source Code Thanks

    • @CodeSbyAniz
      @CodeSbyAniz  Před rokem

      Source code link and steps are shown in the video

    • @diamondphilip1045
      @diamondphilip1045 Před rokem

      @@CodeSbyAniz Link not shown in the video kindly paste it here thanks

  • @jaswanthsingh5227
    @jaswanthsingh5227 Před rokem

    Please provide source code

    • @CodeSbyAniz
      @CodeSbyAniz  Před rokem

      supporting source code link is shown in the video

  • @universalsteelfabricator4121

    Code please

    • @CodeSbyAniz
      @CodeSbyAniz  Před rokem

      Source code link and steps are shown in the video

    • @hamrouni66
      @hamrouni66 Před rokem

      @@CodeSbyAniz source code please full

  • @lynshadad6765
    @lynshadad6765 Před rokem

    source code plz

    • @CodeSbyAniz
      @CodeSbyAniz  Před rokem

      Source code link and steps are shown in the video