In this article i will show you how you can set the default page or default view in your asp.net core 6 application. So this first we will crate a new asp.net core application. Now run the application and then currently set default page.
Now we will make change in our code to set other default page. For this first we will open our Startup.cs file. In this file we need to add the below code under Configure.
app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); }); } |
0 comments:
Please let me know your view