0

I have the following in an MVC 3 Authorize action filter:

HttpContext.Current.Response.RedirectToRoute("OrganizationRoute", new { controller = "Home", action = "OrganizationList" });

When does the redirect occur? Immediately after the above statement is executed? Or after the action filter exits? (Or never?)

And if the redirect doesn't occur until after the filter exits, what happens if I invoke another RedirectToRoute before it exits? That is, I invoke RedirectToRoute two (or more) times in the filter - perhaps with different parameters - and then exit.

Does the last one invoked take effect? Or ???

DadCat

4

0 回答 0