After I run my program which is in MVC, the url it goes is Home/Index. Where to change this?
I want to check if the user is logged in, to redirect so some other page. If he isn’t logged in, then the url can be Home/Index.
After I run my program which is in MVC, the url it goes is
Share
You sort of asking two things.
You application automatically goes to
Home/Indexbecause of this, you’ll find the below code if you double click yourGlobal.asaxfile.Change the “Home” and “Index” strings for your custom default.
Now, for your login requirement, you could leave the default route and do this: