How to set default route in asp.net mvc application from web.config Ask Question
How to set default route in asp.net mvc application from web.config
Solution:
Add Key web.config as below
<add key="DeafaultPageAfterLogin" value="/MyOrderedMeals" />
in controller or route.config file set redirect url to
if (ConfigurationManager.AppSettings["DeafaultPageAfterLogin"]!=null)
{
return Redirect(ConfigurationManager.AppSettings["DeafaultPageAfterLogin"].ToString());
}
in else part you can set default route.
Enter an email address to invite a colleague or co-author to join you on socimo. They will receive an email and, in some cases, up to two reminders.