当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - Open a bootstrap modal from a controller after [Authorize] redirection

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: