Это видео недоступно.
Сожалеем об этом.

Ajax tutorial in ASP.NET C# web programming partial page updates

Поделиться
HTML-код
  • Опубликовано: 14 авг 2024
  • Go to StudyCoding.org to subscribe to the full list of courses and get source code for projects.
    Updated version of this course is studycoding.org
    How to use AJAX in an ASP.NET web page. This will show you how to define a partial page element, modify a form submit request to an AJAX request, import the unobtrusive jquery library using nuget, handle an ajax request in the appropriate controller method and respond to click events in page controls. This video is a compilation of five parts to form one example project.
    This video is an introduction to a free asp.net programming course that covers mvc programming, controllers, views, routes, models, razor tags, ajax, database access and game programming.
    I am a professor of software development and computer science at Grand Canyon University. Students graduate with experience in C#, Java, JavaScript and PHP frameworks including Microsoft .NET MVC, Spring, Enterprise, Laravel, Node, Express, React, Angular, Android, Xamarin and jQuery.
    Included in the programming experience, students also practice software development practices with agile teams using burndown charts, scrums, user story backlogs and sprints.

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

  • @muttBunch
    @muttBunch 3 года назад +13

    Love this guy, “Let’s go fix that”. Love the teaching style. Makes it fun

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

    Just wanted to thank You Sir. I'm a C# desktop developer professionally, but i'm looking for a new job as a ASP.NET developer, and beside reading some books (like "Pro ASP.NET Core 3: Develop Cloud‑Ready Web Applications" which i highly recommend) i am using Your videos, to get more familiar with some topis, while i am making my own projects just for learning purposes.
    As You obviuosly know, making desktop applications with C# is totally different than making web applications (tbh the only thing, that is the same, is the language).
    So, once more - thank You :)

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

    Doing this on ASP.NET in .NET 6 and I had to use "@Html.Partial("_Header")" instead of "@RenderPage("_Header")". Seems like something to do with the new framework. Not *100% sure that I translated everything you did over correctly in the new version but I was able to replicate most of your results. TYVM for this!!

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

    Extraordinary. Now I know what partial refresh is. Thanks a ton.

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

    That is exactly what I was looking for. Great video.

  • @a.f.r.nunofficial9585
    @a.f.r.nunofficial9585 3 года назад +4

    AJAX starts at 23:47

  • @martink4975
    @martink4975 3 года назад +2

    Nice and easy Ajax example. I respect the onclick tip you added inn!
    Quick question would you do this in ASP.NET Core?( or is it .NET5 now :P).
    I am new to ASP development and get confused sometimes about what works where and best practices.

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

    Hi Shad,
    Amazing tutorial.
    This was one of my doubts if it could be done, you solved this doubt for me.
    I have been reading a little bit and I have found that many sites recommend the use of ViewComponent instead of Partial View, I am still reading to know what a ViewComponent is, knowing the difference between Partial View and ComponentView, and how to work with them.
    Do you have a video or videos explaining ViewComponent?
    Sincerely,
    Juan Boada

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

    Thank you bro, your explanation is quite smooth. Regards, bravedeveloper.

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

    Thank you, excellent teaching style

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

    Excellent. Thanks for the tutorial.

  • @castor.fiber79
    @castor.fiber79 4 года назад +2

    great tutorial!

  • @rexworthington881
    @rexworthington881 4 года назад +2

    2:26 You were getting ready to say "bullshit" and caught yourself LOL

  • @MrMattberry1
    @MrMattberry1 9 месяцев назад

    Great video thanks

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

    Hi, Great Tutorial. After adding the AJAX functionality the customer details are now appearing on a new page? I have checked the UpdateTargetId and it is the same as the Div Id. I'm stumped. Any ideas what I have done wrong?

    • @frankstar366
      @frankstar366 7 месяцев назад

      This could be because your links to the libraries on the _layout page are in the wrong order, jQuery min must be before unobtrusive. i.e.

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

    Unfortunately he builds bugs into his code to "troubleshoot". This means when you make a mistake yourself, you end up looking through the video and typing in his bugs.

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

    I am getting an error when I create the first view, specifically in the second line "Layout = null;". The error reads as CS0103: The name "Layout" does not exist in the current context. Any ideas on how to fix this, I have searched for fixes and none have worked. Anyone has the same issue? Solutions?

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

    thanks sr.

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

    This makes ajax so much more complicated than plain html...

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

    Excellent job. Thank you.

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

    I just have one question for now why didn't you do this with vs code because I dotnet add ef etc.. and all this stuff happens and all I have to do is change the layout. It seems like more work this way

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

      This is not an MVC i am guessing

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

    Thank you, sir.

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

    I really wish I could have you look at my code and help me this shit is driving me bonkers and no I am not using razor pages. My school sucks for not teaching me how to do that

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

    come on bro - say that you're using ajax form and not ajax in the title. form submittals are not that same as straight up ajax

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

    Sorry too long for me