jeudi 10 décembre 2015

wrong redirect page in Application_AcquireRequestState event in MVC

When i redirect from login action to another action in another controller i use this code

RedirectToAction("Index", "dashboard")

in glbal.asax i use this event Application_AcquireRequestState this event is called in each redirect in the system but when i redirect to dashboard from login page the url that i got in Application_AcquireRequestState function is url of login page not dashboard url although i redirect right by this code

RedirectToAction("Index", "dashboard")

and sometimes i got this issue and sometimes not get it and i didn't get it local but i get it always in deployment in the internet

Aucun commentaire:

Enregistrer un commentaire