问题描述:

I use ASP.NET MVC 4, and I want to know if it's possible to open a bootstrap modal with ActionResult after a redirection due to [Authorize] attribute.

In Web.config I have this :

<Authentication mode="forms">

<forms loginUrl="~/home/login"/>

</Authentication>

My authentication form is in a bootstrap modal, in a normal way I use a link to open this modal, but in the case of a redirection due to [Authorize] attibute.

How I can open the modal to authenticate the user ?

Thanks in advance.

相关阅读:
Top