how to pass the viewdata to the target_page of " filterContext.Result = new RedirectResult(target_page) "

257 views Asked by At

when i write a

FilterAttribute, IAuthorizationFilter

i can't pass viewdata to the target_page in

filterContext.Result = new RedirectResult(target_page)

i had tried :

filterContext.Controller.ViewData.Add("_errorInfo", "xxxxx");

but its not working.

0

There are 0 answers