Part 92 Ajax with asp net mvc

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 122

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 років тому +2

    sure, will do it very soon. In the description of this video, I have included the link for ASP .NET, C#, and SQL Server playlists. All the videos are arranged in logical sequence in these playlists, which could be useful to you. Please share the link with your friends who you think would also benefit from them. If you like these videos, please click on the THUMBS UP button below the video. For email alerts, when new videos are uploaded, you may subscribe to my channel.

  • @georgegeschwend7453
    @georgegeschwend7453 7 років тому

    Awesome video. The mysteries of Ajax and Mvc are unlocked.

  • @nileshb5083
    @nileshb5083 8 років тому +2

    Use to work on MVC4/5. Thank you so much Venkat sir!!

  • @kopilkaiser8991
    @kopilkaiser8991 4 місяці тому

    Thank you brother for all your hard efforts and work in bringing to us all of these valuable knowledge. I was able to improve and enhance my knowledge in mvc and by learning ajax it just got better. As doing requests without needing to refresh page is indeed very valuable 😊✌️

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 років тому +1

    Brilliant, thank you very much for taking time to answer this question. Keep up the good work of helping others.

    • @khalilsandal8070
      @khalilsandal8070 5 років тому +1

      you should probably delete this comment, it looks like you are commenting on your video when in fact you were replying to another comment cs youtube didn't have the reply functionality not until recently.

  • @Squackles14
    @Squackles14 11 років тому +2

    Ajax (Asynchronous JavaScript and XML) is a way that allows the client (the users browser) to make calls to the server to retrieve data without having to do a full refresh of the page.
    Jquery is a javascript library that can among other; things make it easier to implement AJAX behaviour in a browser.
    think of browser chatrooms or youtube refresh comments capability.

  • @johncross116
    @johncross116 8 років тому

    Kudvenkat, thank you so much for your videos! I use these often and regularly prefer them over my pluralsight subscription.

  • @nikitakildibekov7044
    @nikitakildibekov7044 6 років тому +1

    You helped me so many times....THANK YOU!!!!

  • @stevenfralix4938
    @stevenfralix4938 3 роки тому

    My dude, helped me out alot!! Thank you.

  • @braScene
    @braScene 8 років тому +1

    Great and easy to understand as usual, thank you!!

  • @jameel941
    @jameel941 8 років тому +1

    very helpful and also explained well. thanks a lot. keep working

  • @Deep185
    @Deep185 10 років тому

    Thanks for doing this. Very nice, will help me for my mvc projects.

  • @edisoncrisostomo3786
    @edisoncrisostomo3786 6 років тому +1

    just what i need! Thank you for this!

  • @anthonyruffino8979
    @anthonyruffino8979 10 років тому

    Great Video. I have to make some UI for some tools at work (programming that I do not really enjoy) and this will definitely help me keep things responsive and clean.

  • @zenanon7169
    @zenanon7169 11 років тому

    Thanks this is a big help...I like your blog too.

  • @navatagames
    @navatagames 9 років тому +2

    Thanks a lot. Very nice tutorial. saved me lot of time

    • @sachingreat222
      @sachingreat222 7 років тому

      Very nice tutorial. Can we use Ajax toolkit in mvc or any other free toolkit in mvc which provides controls like datalist and all

  •  7 років тому +1

    Very clear explanation. Thanks

  • @abhinavkumar8271
    @abhinavkumar8271 8 років тому

    Great Video.. Thanks Venkat..

  • @kalyanidotnet5905
    @kalyanidotnet5905 10 років тому +2

    ur tutorials are awesome

  •  10 років тому +1

    Muy buen aporte. Gracias amigo =)

  • @SharePointCafeNet
    @SharePointCafeNet 6 років тому +1

    Hi Venkat, Nice Video. Thanks for the explanation. Could you please explain the same demo by using a Layout Page. Because, in my case, I am able to implement AJAX perfectly without Layout page, but if I am using a Layout then clicking on Ajax link is showing complete blank page. Appreciate if you could explain this.

  • @reynan218
    @reynan218 9 років тому +3

    Nice tutorial. I have a question. how can i use dropdownlist instead of actionlink?

  • @cavidaramalingam4613
    @cavidaramalingam4613 9 років тому +1

    Very nice and helpful tutorial

  • @TheTruRavi
    @TheTruRavi 11 років тому +1

    Hi Venkat,
    Thanks for all your videos.
    Could you please explain Design patterns - Singlton, Factory, Abstract Factory and real time use ?
    Could you please explain IEnumerable and  IQueryable, that will be really helpful ?
    One request if you are going to create videos for later point, it will be helpful if you post these answers on blog as you did for WCF, for time being we can refer till you upload videos
    Thanks,

  • @Lepinochftw
    @Lepinochftw 9 років тому +1

    you saved my life.

  • @joshuatoala8661
    @joshuatoala8661 6 років тому +1

    good morning sorry the questions ¿do you have any video to talk about REPORTS using the arquitecture MVC and viewmodels?

  • @thendomasuma8875
    @thendomasuma8875 6 років тому

    Thank you Sir keep up the good work

  • @gauravkumar004
    @gauravkumar004 9 років тому +1

    Thanks .. Nice explanation.

  • @ramaduraijayaraman7799
    @ramaduraijayaraman7799 9 років тому

    Very Helpful Tutorial. Thank you.

  • @mloettgers
    @mloettgers 9 років тому +1

    Thank you very much. Really helpfull :-))

  • @mozhgankhosravi8668
    @mozhgankhosravi8668 8 років тому

    Very Helpful Tutorial Thank you

  • @LuisBragagnolo
    @LuisBragagnolo 10 років тому +2

    For those who are having problems, you must add these two lines:
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryval")

    • @harrymaartens
      @harrymaartens 10 років тому

      Hello I'm busy with that demo, but where must I add these two lines?

    • @LuisBragagnolo
      @LuisBragagnolo 10 років тому

      At the end, just throw those two line in any place at the end of the view.

    • @harrymaartens
      @harrymaartens 10 років тому

      My first step was:
      Install-Package Microsoft.jQuery.Unobtrusive.Ajax
      @Scripts.Render("~/Scripts/jquery.unobtrusive-ajax.min.js")
      Then your 2 lines at the end of view Index but when I run the site I get an Compilation Error.
      Must I create a bundle map with some data?

    • @harrymaartens
      @harrymaartens 10 років тому

      Some security options blocked the AJAX script. Now its working perfect.

    • @tohidtaghizadeh728
      @tohidtaghizadeh728 10 років тому

      I add these to line in view bu stil don't working, when i click on all or top3 its redirect me to ../home/all , what should i do ? thanks

  • @Suni777
    @Suni777 4 роки тому

    Love you sir thanks a lot

  • @anthonywolf1731
    @anthonywolf1731 11 років тому

    Thank you for the great video, I've been looking for something like this to replace my clunky and awkward use of server-side datatables. In the Ajax.ActionLinks, is there any way to pass additional data to the server such as sort column, ascending / descending, and additional filtering information?

  • @contactsan5088
    @contactsan5088 11 років тому +1

    Hi Venkat, I tried to implement this code in my system, but for some reason the whole page is posted to server. Once the student info is displayed, Title and links are gone and the student info is only visible on the page. Looks like Ajax is not work and the whole page is posted to server. I am I missing something here??? Appreciate your response...

  • @ditisnietpablo
    @ditisnietpablo 8 років тому +1

    Hey, I was testing this in visual studio which already had a standard css style setup for all pages. It works great, however the style does not get applied after the ajax replace. Any help?

  • @Vivalavidapool
    @Vivalavidapool 8 років тому +20

    Install-Package Microsoft.jQuery.Unobtrusive.Ajax
    if you don't have the file with mvc5

    • @AB-wn3ne
      @AB-wn3ne 7 років тому

      Thanks bro

    • @pedro1jfa
      @pedro1jfa 4 роки тому +1

      That was very important ;)

  • @lisbecg
    @lisbecg 8 років тому +1

    Great video!!!!!!!! Thanks.

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  8 років тому +1

      Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful.
      I have organised all the Dot Net & SQL Server videos in to playlists, which could be useful to you
      ua-cam.com/users/kudvenkatplaylists?view=1&sort=dd
      If you need DVDs or to download all the videos for offline viewing please visit
      www.pragimtech.com/kudvenkat_dvd.aspx
      Slides and Text Version of the videos can be found on my blog
      csharp-video-tutorials.blogspot.com
      Tips to effectively use my youtube channel.
      ua-cam.com/video/y780MwhY70s/v-deo.html
      If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel.
      ua-cam.com/users/kudvenkat
      If you like these videos, please click on the THUMBS UP button below the video.
      May I ask you for a favor. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them.
      Good Luck
      Venkat

  • @HawazTekle
    @HawazTekle 10 років тому

    Great video !

  • @varshas4187
    @varshas4187 11 років тому

    Great video... Thanks a lot ....

  • @TheOmarAB
    @TheOmarAB 10 років тому

    Thank You, Very Usefull Helpfull

  • @irajeshtailor
    @irajeshtailor 5 років тому

    God for beginners

  • @sachingreat222
    @sachingreat222 7 років тому

    Great explanation

  • @wgrzesiak147
    @wgrzesiak147 7 років тому +1

    For MVC 5 following scripts have to be added in Index view

  • @ГРУППАПЗС
    @ГРУППАПЗС 9 років тому +2

    Excellent

  • @FatalFarrow
    @FatalFarrow 9 років тому +1

    Great tutorial

  • @chandrashekharvishwakarma4759
    @chandrashekharvishwakarma4759 11 років тому

    this is very helpful thanks

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

    Thank you! In my case I had to also get the NuGet package for Microsoft jQuery Ajax

  • @jaylovett2237
    @jaylovett2237 7 років тому

    Very good video. Is there a way to have all student render by default in the partial page?

  • @PradeepLilhare
    @PradeepLilhare 9 років тому

    Thanks a lot really helpfull for my project.

  • @Diablo070707
    @Diablo070707 4 роки тому

    Great video. One question: how should I go about if I wanted PartialViewResult All() to display by default on view without the need to click on the link?

  • @KearlHat
    @KearlHat 6 років тому

    How can more complex parameters be passed to ajax.actionlink? Like another model or class of variables? Thanks!

  • @Adnanali-cs3ql
    @Adnanali-cs3ql 6 років тому

    Really helpful!

  • @BalwinderKaur-bc2kp
    @BalwinderKaur-bc2kp 9 місяців тому

    hi
    is it still working with Visual Studio 2022 ?
    @AJAX helper shows error even after installing packages
    advise me

  • @adnhocvien
    @adnhocvien 7 років тому

    Dear Mr. Kudvenkat:
    I'm very impressed your Ajax MVC video.
    How to write the Ajax first load All Student by default? then after that user can click other links?
    I would appreciate it, if you will send the code sample code of Ajax to populate ALL STUDENTS by default.
    Thank you;

  • @sodiptosaha229
    @sodiptosaha229 6 років тому

    what is the version of jquery.unobtrusive-ajax.min.js you use?

  • @Adam-sg1eo
    @Adam-sg1eo 5 років тому

    I must be stupid or something. I am struggling and getting the error: Cannot pass type List into the view from controller. Needs to be of type IEnumerable.
    When I attempt to pass this same list from my model into a normal view(not partial) it works fine. Only getting this error with partials.

    • @sarmadjutt4384
      @sarmadjutt4384 5 років тому

      May be you didn't make partial view of type list

  • @nolimitsREAL
    @nolimitsREAL 4 роки тому

    How would work if you would use a class from ViewModels instead of using directly the model ? thanks

  • @iupendaraele
    @iupendaraele 6 років тому

    i have installed entity framework 6.1.3 vs2015.
    after addig the edmx file to my model folder. i didn't get designe file and dbcontext.cs file vb.net why?

  • @nandhinic4115
    @nandhinic4115 9 місяців тому

    Ajax can be used asp. Net core mvc?

  • @waiyanhein7205
    @waiyanhein7205 10 років тому +1

    It is not working as expexted . Why ?? It redirect to the action url and rendering the partial view in new url as new page . Please any idea ??

    • @maaaa322
      @maaaa322 10 років тому +6

      Install-Package Microsoft.jQuery.Unobtrusive.Ajax
      @Scripts.Render("~/Scripts/jquery.unobtrusive-ajax.min.js")

    • @islamahmed4003
      @islamahmed4003 9 років тому

      +Waiyan Hein same here and i'm trying to find solution but no solution till now! any help

    • @islamahmed4003
      @islamahmed4003 9 років тому

      +Waiyan Hein i have found the solution , in this example he created an Index view without associated it with a layout or masterpage so he was forced to but ajax scripts references in his index cshtml..most of peaple who had a new window problem use the auto-generated mvc package , in it the index chtml associated to a layout so the solution is to decleare the references or the scripts in the layout.

    • @pedroantunes4157
      @pedroantunes4157 7 років тому

      Thank you ;)

    • @AbhishekAnshuuu
      @AbhishekAnshuuu 6 років тому

      +Mari Although it's a 3-year old comment. It is still helping today. Thanks a lot lot lot.

  • @shahedali9943
    @shahedali9943 3 роки тому

    Respected Sir,
    Links are also getting replaced with Div tag if we click on any link

  • @alaahershey1797
    @alaahershey1797 6 років тому

    Hi, how to load the result of this ajax ActionLink when page loads(without pressing the link I mean) , Thanks.

  • @alfredjose1745
    @alfredjose1745 8 років тому

    Hi sir, can you make a tutorial about pagelist that combine this ajax. thank you.

  • @engr.muhammadenayethossain8318
    @engr.muhammadenayethossain8318 8 років тому

    nice video

  • @Jupitersparks30
    @Jupitersparks30 11 років тому

    there is issue with ajax version 2.1 .. the whole page is getting posted again.

  • @adityaubale528
    @adityaubale528 5 років тому

    I didn't get the need of Id= divstudent , it's empty div .. so what is its use..

  • @mandardesai3841
    @mandardesai3841 11 років тому

    how and why implement recatpcha functionality can you demonstrate with mvc Example

  • @zerofcks_given
    @zerofcks_given 8 років тому

    how to do this ajax with paging?

  • @edinenu5291
    @edinenu5291 9 років тому

    Dear Sir,
    Can you please tell me how to pass value of textbox as a parameter to ActionLink?
    For example:
    @Ajax.ActionLink("Top 3", "Top3",
    new { Name = "Here i want to use FirstName textbox entered value as a paramter"},
    new AjaxOptions
    {
    HttpMethod = "GET",
    UpdateTargetId = "divStudents",
    InsertionMode = InsertionMode.Replace // Replace the existing contents
    })
    I have Name control @Html.Text("FirstName").
    Thank You,

  • @sergioesteban7663
    @sergioesteban7663 6 років тому

    how to perform a post with ajax.actionlink?

  • @lespiotrowski3451
    @lespiotrowski3451 8 років тому

    MVC Core does not support @Ajax.ActionLink....how would you do this in Core?

    • @你猜不着
      @你猜不着 8 років тому

      U should include jquery.unobtrusive-ajax.min.js into the page and done

  • @TheKopheE
    @TheKopheE 10 років тому

    Thank you so much :)

  • @ppreethuu
    @ppreethuu 9 років тому

    can you please help me "how to bind a listview using webmethod ? i mean using ajax method"

  • @pedroantunes4157
    @pedroantunes4157 7 років тому

    Thank you!

  • @tohidtemp8574
    @tohidtemp8574 9 років тому

    wonderful for me

  • @hendesebilisim
    @hendesebilisim 7 років тому

    Thank you Sİr

  • @ishfaqawan572
    @ishfaqawan572 6 років тому

    Helpful

  • @David-wc8ze
    @David-wc8ze 7 років тому

    Thanks...

  • @saagarsoni3
    @saagarsoni3 11 років тому

    thank u sir

  • @ipsitapani8641
    @ipsitapani8641 11 років тому

    WHAT IS AJAX AND JQUERY SIR?

  • @ipsitapani4760
    @ipsitapani4760 11 років тому

    THANKS.

  • @lemonsadadtrewd
    @lemonsadadtrewd 9 років тому

    Doesnt work in Mozzila Firefox. Use Google Chrome.
    EDIT: Make sure javascript is enabled... Mine wasn't. It will work in MF.

  • @marcinpiwowarski7770
    @marcinpiwowarski7770 9 років тому

    Don't know why i get redirect from localhost:64737/Home/Index to 64737/Home/Top3 after clicked 'Top3' Ajax.ActionLink. So in result ajax doesnt work for me. Do u have any suggestion?

    • @craigj20
      @craigj20 8 років тому

      +Marcin Piwowarski I am getting the same. did you find the solution?

    • @marcinpiwowarski7770
      @marcinpiwowarski7770 8 років тому

      +Craig Jameson I can make project with this sample and put on my github and then give you link cuz i dont remember how I did solve this problem

    • @ilkinsamelimov8096
      @ilkinsamelimov8096 8 років тому +3

      +Marcin Piwowarski
      1. Run this command in Package Manager Console:
      Install-Package Microsoft.jQuery.Unobtrusive.Ajax
      2. Add this js file (under 'Scripts' folder) into your main page after calling jquery:
      'jquery.unobtrusive-ajax.min.js'
      3. Enjoy ajax :)

    • @johncross116
      @johncross116 8 років тому

      Did you create "Top3" as a partial view? Make sure the controller reflects this too.

    • @chiraglangaliya9051
      @chiraglangaliya9051 8 років тому

      Enable javascript in the browser...and you are good to go...

  • @mjyo3807
    @mjyo3807 5 років тому +2

    It is not working as expected. Why ?? It redirects to the action URL and rendering the partial view in new URL as a new page. Please, any idea?

    • @henrikolsson7799
      @henrikolsson7799 5 років тому

      6 months too late but if you press F12. You might get an error message in google chrome console. The version of Ajax and Jquery was not compatible. If you use the package manager and enter Install-Package Microsoft.jQuery.Unobtrusive.Ajax -Version 3.2.6. that worked with version 3.3.1 of Jquery.

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

    hi i am trying to do this in identity register rezor page, but i am confused, because there is not controller so how can i give url?

  • @rockonyo100
    @rockonyo100 5 років тому

    Thanks.....

  • @LifeIsGood1992
    @LifeIsGood1992 6 років тому

    thank you !