Use jQuery AJAX in ASP.NET CORE 6? You NEED to see how it´s done!

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 29

  • @tutorialsEUC
    @tutorialsEUC  2 роки тому +2

    🚀C# Progress Academy - Become a senior C# developer: academy.tutorials.eu/p/csharp-progress-academy

  • @harrynewman1744
    @harrynewman1744 2 роки тому +7

    I wish this tutorial was in depth and used a more likely scenario. Can't get an onclick button to find a function in the script tag, and moving the function to the site.js file makes the url for the controller action unreachable.

  • @kopilkaiser8991
    @kopilkaiser8991 Місяць тому

    Big big thanks to you brother for providing such great content and tutorial to learn so much 😊. I am very glad to learn this and found it super effective and helpful in my use cases

  • @chadgregory9037
    @chadgregory9037 2 роки тому +2

    using ajax to fire off a partial view or view component is about the best thing ive found that isnt blazor server

  • @borislavenchev5051
    @borislavenchev5051 2 роки тому

    I am getting error: Object 'error' DOMException: Failed to execute 'open' on 'XMLHttpRequest': '/HOME/GETNAMES' is not a valid HTTP method.

  • @AdnanAbbasi_LXXVIII
    @AdnanAbbasi_LXXVIII Рік тому

    Jannick you are the bomb, just like Oz said excellent, simple and practical, love it 🙂

  • @daviddevon
    @daviddevon Рік тому

    Doing this when the App is protected with AzureAd resuts in a cors error can you do a video or explain how to manage this?

  • @kriskata7653
    @kriskata7653 10 місяців тому

    how do you have jQuery intellisense working?

  • @duncanfirth
    @duncanfirth Рік тому

    How do I handle. Net date time convert to JQuery short date. I have been struggling with that any tips? Internet has been no help at all do I send from an ActionResult View Model?

  • @improvefps
    @improvefps 2 роки тому +4

    no link to source?

  • @lassetvedegaardnyboe7084
    @lassetvedegaardnyboe7084 Рік тому +1

    Good video! Just one thing, a lot of video´s in general on youtube about programming, use hardcoded examples. It would be useful to make a video like this with userinput from a REST service. Its much more useful in the real world. Just a thought from a cs student :)

  •  2 роки тому +3

    can u show us how to make a multipart/form-data ajax post?

  • @OzOvadia
    @OzOvadia 2 роки тому +1

    Execllent! Simple and parctical. Thank you!

  • @tutorialsEUAndroid
    @tutorialsEUAndroid 2 роки тому +3

    Let's go!

  • @HimaniDave-l1m
    @HimaniDave-l1m Рік тому

    where I can get code for this video?

  • @DaniLearnsIT
    @DaniLearnsIT 8 місяців тому

    Can anyone explain a bit more on the @await RenderSectionAsync("Scripts", required: false)? So far I just have noticed that without including my scripts in the @section Scripts{}, jquery doesn't work!

    • @DaniLearnsIT
      @DaniLearnsIT 8 місяців тому

      Figured it out! Your page is rendering in the _Layout right where the @RenderBody() is placed. This is in the middle of the layout. This means that whatever you have in your page gets inserted here, Including your block. Because it is in the middle, your script block gets inserted BEFORE you declare the use of jquery! The @await RenderSectionAsync("Scripts", required: false) makes it so if you have a section called Scripts, it renderes it AFTER the declaration of Jquery(because you are placing that line of code after the declaration of jquery).
      Pretty much, your block gets rendered below the because of @await RenderSectionAsync("Scripts", required: false). If you don't use the @section Scripts{}, it gets rendered above , which makes it so your scripts have no idea of what jquery is.

  • @latestautonews6016
    @latestautonews6016 Рік тому +1

    Thanks. it is very usefull.

  • @moeinvafapour5440
    @moeinvafapour5440 2 роки тому +1

    thank you very much for this great video ❤😍

  • @nangdalet5994
    @nangdalet5994 2 роки тому

    Can you demo crud using AJAX and don't use Html helper . And Controller like this
    Public async taskName(){
    ----------------------
    return ok();
    }

  • @codetech1165
    @codetech1165 Рік тому +1

    brill

  • @getsmartpaul
    @getsmartpaul Рік тому +2

    Hi, this example demos absolute minimum information and is NOT a useful example at all. It cannot help a beginner to code it. I think it’s only to advertise your courses ?

    • @tutorialsEUC
      @tutorialsEUC  Рік тому

      Hi there, thanks for your comment. We would love to create another video on that topic if you tell us what we could improve.
      What is a useful example from your side of view?
      Greets

  • @vargr4730
    @vargr4730 10 місяців тому

    jQuery in 2022/2023 is like using a rusty carving knife to do surgery... why??????

    • @csexton07
      @csexton07 8 місяців тому

      Not true, used it many admin like sites. Sure customer facing, id probably agree in most scenarios. Ive used it in so many prototypes.

  • @pietrononame4945
    @pietrononame4945 2 роки тому +3

    I hate jQuery.