Was just watching this video and the previous conventional routing video to get a handle on MVC routing. This video was so brilliant that I'm going to watch the entire series. Thanks mate from Australia.
@nayazpasha59634 жыл бұрын
You are just a legend sir.. I was searching for routing tutorials very badly.. You just nailed it!
@barney85454 жыл бұрын
The best .net core tutorial on KZbin
@fleurarkesteijn51224 жыл бұрын
Love how thorough, clear and calm you explain everything!
@vinzer72frie5 жыл бұрын
I am glad to see you're staying fresh with the new tech including net core keep the good work
@TheWestDESIGN5 жыл бұрын
Binge watched the whole series. It's amazing, keep it up! :)
@1980goutam5 жыл бұрын
I really like the video. It help me lot to learn thank you very much to make such wonderful tutorial.
@InamiLanzhu2 ай бұрын
Thanks again for another amazing lecture
@lastkingssaint46092 жыл бұрын
Once again, excellent tutorials!
@DarkCloud75 жыл бұрын
At 4:35 you can optionally also just change the attribute to: [Route("Home/Details/{id=1}")] and leave the rest identical, this also creates the default behaviour (using core 3.0 btw). I don't know if this method has any drawbacks.
@conaxlearn85664 жыл бұрын
Or public ViewResult Details(int id=1) {...}
@aszuts2 жыл бұрын
Very nice and clear explanation of attribute routing! (Y)
@chillbro22755 жыл бұрын
Wow cool feature, and well explained and demonstrated!
@MicroftHunter5 жыл бұрын
12:09 I've tested this attribute routing but I've encountered errors with this Error: This localhost page can't be found "localhost:4259/home/index" Other links are fine: "localhost:4259/" "localhost:4259/home" "localhost:4259/home/details" "localhost:4259/home/details/1" Please answer me @kudvenkat
@deepakha97593 жыл бұрын
Crystal clear explanation!
@sylviur4 жыл бұрын
Thank you for this wonderful presentations.
@MyGreenpotato3 жыл бұрын
Best explanation!
@abdulmagedal-khulaifi64103 жыл бұрын
Super useful, thank you 💙
@streetzstudio1005 жыл бұрын
I refuse to learn .net core because you have not done a tutorial on it. Now that you have done? and now that i have seen your tutorial to this level, i can say that you are the best .net instructor in the whole world
@MmMm-tg5mq5 жыл бұрын
simply, great
@AbuSayed-gf8gt3 жыл бұрын
Great
@robertmays60975 жыл бұрын
very clear nicely put
@gizzmo19764 жыл бұрын
Well done!
@iyerpram5 жыл бұрын
Thanks for sharing this
@krzysztofhandzlik92735 жыл бұрын
Thumbs up!
@deepakkumarprajapati88232 жыл бұрын
awesome
@salmanchowdarym11105 жыл бұрын
Great video
@Sagricon5 жыл бұрын
In most of the cases you may not want to change the url if you rename the class name or function name of controller. Since it would be a breaking change for the clients.
@debugville29725 жыл бұрын
Please discuss OAuth and Web API versioning.
@josedejesuslopezdiaz5 жыл бұрын
Yes plz Oauth2 flows
@ymtan5 жыл бұрын
Hi Venkat, I would like to ask regarding the token replacement in attribute routing. When we navigate to URL (localhost:15410/home), the Index action method is executed and we are able to see the list of employees. You mentioned that is because of the [Route("")] attribute on the Index action method working in combination with the [Route("[controller]")] attribute on the HomeController. Notice in the URL we have the path "home", so the [controller] token is replaced with "home". However, I don't understand what do you mean we made the Index action within the HomeController the default action by including an empty route template [Route("")] ???
@karuppiahck4 жыл бұрын
@Kudvenkat : In controller level, Can we use Route["Home/"] to avoid one more route in action method!?
@karimmessaoud31914 жыл бұрын
Thank you very much!
@mrmoinn5 жыл бұрын
So does the attribute route override the route generated by the UseMvc() conventional method?
@carlosgarcia81074 жыл бұрын
What is the best practice, use the config settings or use the attrib path?. If I have a lot of controllers and actions it's better to have all the routing in one place (centralized) or specify for each controller and action (distributed)?
@deepakpandey94063 жыл бұрын
Best Practices, well it depends on your situation and project that you are working, basically when you are building Web Api project, you should use attribute routing, because it gives your controller and action level control for url. Conventional routing when you are building web application. Well, you could also customize your url using conventional based approach.
@javaguitarist4 жыл бұрын
The null-coalescing C# operator "??" did not work in my code. I looked it up, and this is because it was only introduced in C# v8.0.
@coolwaterdvr5 жыл бұрын
Thanks Venkat.
@AlThePal783 жыл бұрын
um what is the advantage of this if you can do something like [HttpGet("Controller/Action/{ID}")] and then in your view you can access it like Show One I am asking because this is how I learned how to do it in my coding bootcamp so trying to figure out what is the best route to go :)
@fennelsoft5 жыл бұрын
is there a way to navigate to a specific action when a navigation link is clicked without changing the url. like url= localhost:5544 and url = localhost:5544
@kristiyanivanov74143 жыл бұрын
Thanks!
@JayJay-nb1sv4 жыл бұрын
For net core 3, if you want to use endpoints use app.UseEndpoints(endpoints => { endpoints.MapControllers(); });
@KevinMullarkey4 жыл бұрын
How can i get the person's name to show in the show in the url optionally to the default id? i.e ...myhost://home/James as well as myhost://home/1 I am using Core 2.1 Thanks
@miraj00720045 жыл бұрын
Kudvenkat and Chill
@wassemalaabid60615 жыл бұрын
Perfektion
@GG9K714 жыл бұрын
Why to use [Route] attribute on an action method when you can use HTTP Verb method?
@saravana87963 жыл бұрын
Sir I am getting 404 error while giving like this : localhost:64947/Home/Index, I have implemented the same like you
@salomonks-francais67525 жыл бұрын
I am the first to comment today
@Sysshad5 жыл бұрын
Im the first to comment the first comment today :)
@kumarshrey2093 жыл бұрын
6 May 2021
@tothedust5 жыл бұрын
Dear sir one request can you please put number with title in videos
@mrmoinn5 жыл бұрын
It's all in a playlist anyways for easy viewing and the number is in the thumbnail of the video