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.
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 😊✌️
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.
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.
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.
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.
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,
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?
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?
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...
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?
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
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?
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;
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.
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?
+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.
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,
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?
+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 :)
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.
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.
Awesome video. The mysteries of Ajax and Mvc are unlocked.
Use to work on MVC4/5. Thank you so much Venkat sir!!
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 😊✌️
Brilliant, thank you very much for taking time to answer this question. Keep up the good work of helping others.
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.
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.
Kudvenkat, thank you so much for your videos! I use these often and regularly prefer them over my pluralsight subscription.
You helped me so many times....THANK YOU!!!!
My dude, helped me out alot!! Thank you.
Great and easy to understand as usual, thank you!!
very helpful and also explained well. thanks a lot. keep working
Thanks for doing this. Very nice, will help me for my mvc projects.
just what i need! Thank you for this!
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.
Thanks this is a big help...I like your blog too.
ua-cam.com/video/UUWZJJnAzzc/v-deo.html
Thanks a lot. Very nice tutorial. saved me lot of time
Very nice tutorial. Can we use Ajax toolkit in mvc or any other free toolkit in mvc which provides controls like datalist and all
Very clear explanation. Thanks
ua-cam.com/video/UUWZJJnAzzc/v-deo.html
Great Video.. Thanks Venkat..
ur tutorials are awesome
Muy buen aporte. Gracias amigo =)
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.
Nice tutorial. I have a question. how can i use dropdownlist instead of actionlink?
Very nice and helpful tutorial
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,
you saved my life.
ua-cam.com/video/UUWZJJnAzzc/v-deo.html
good morning sorry the questions ¿do you have any video to talk about REPORTS using the arquitecture MVC and viewmodels?
Thank you Sir keep up the good work
Thanks .. Nice explanation.
Very Helpful Tutorial. Thank you.
Thank you very much. Really helpfull :-))
Very Helpful Tutorial Thank you
For those who are having problems, you must add these two lines:
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/jqueryval")
Hello I'm busy with that demo, but where must I add these two lines?
At the end, just throw those two line in any place at the end of the view.
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?
Some security options blocked the AJAX script. Now its working perfect.
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
Love you sir thanks a lot
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?
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...
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?
ua-cam.com/video/UUWZJJnAzzc/v-deo.html
Install-Package Microsoft.jQuery.Unobtrusive.Ajax
if you don't have the file with mvc5
Thanks bro
That was very important ;)
Great video!!!!!!!! Thanks.
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
Great video !
Great video... Thanks a lot ....
Thank You, Very Usefull Helpfull
God for beginners
Great explanation
For MVC 5 following scripts have to be added in Index view
Excellent
Great tutorial
this is very helpful thanks
Thank you! In my case I had to also get the NuGet package for Microsoft jQuery Ajax
Very good video. Is there a way to have all student render by default in the partial page?
Thanks a lot really helpfull for my project.
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?
Call Render method on Index load
How can more complex parameters be passed to ajax.actionlink? Like another model or class of variables? Thanks!
Really helpful!
hi
is it still working with Visual Studio 2022 ?
@AJAX helper shows error even after installing packages
advise me
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;
ua-cam.com/video/UUWZJJnAzzc/v-deo.html
what is the version of jquery.unobtrusive-ajax.min.js you use?
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.
May be you didn't make partial view of type list
How would work if you would use a class from ViewModels instead of using directly the model ? thanks
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?
Ajax can be used asp. Net core mvc?
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 ??
Install-Package Microsoft.jQuery.Unobtrusive.Ajax
@Scripts.Render("~/Scripts/jquery.unobtrusive-ajax.min.js")
+Waiyan Hein same here and i'm trying to find solution but no solution till now! any help
+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.
Thank you ;)
+Mari Although it's a 3-year old comment. It is still helping today. Thanks a lot lot lot.
Respected Sir,
Links are also getting replaced with Div tag if we click on any link
Hi, how to load the result of this ajax ActionLink when page loads(without pressing the link I mean) , Thanks.
Hi sir, can you make a tutorial about pagelist that combine this ajax. thank you.
nice video
there is issue with ajax version 2.1 .. the whole page is getting posted again.
I didn't get the need of Id= divstudent , it's empty div .. so what is its use..
how and why implement recatpcha functionality can you demonstrate with mvc Example
how to do this ajax with paging?
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,
how to perform a post with ajax.actionlink?
MVC Core does not support @Ajax.ActionLink....how would you do this in Core?
U should include jquery.unobtrusive-ajax.min.js into the page and done
Thank you so much :)
can you please help me "how to bind a listview using webmethod ? i mean using ajax method"
Thank you!
wonderful for me
Thank you Sİr
Helpful
Thanks...
thank u sir
WHAT IS AJAX AND JQUERY SIR?
ua-cam.com/video/UUWZJJnAzzc/v-deo.html
THANKS.
Doesnt work in Mozzila Firefox. Use Google Chrome.
EDIT: Make sure javascript is enabled... Mine wasn't. It will work in MF.
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?
+Marcin Piwowarski I am getting the same. did you find the solution?
+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
+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 :)
Did you create "Top3" as a partial view? Make sure the controller reflects this too.
Enable javascript in the browser...and you are good to go...
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?
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.
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?
Thanks.....
thank you !