Featured post
asp.net - How to invoke a Forms Auth login modal dialog instead of redirecting to a loginUrl signin page? -
i've finished implementing modal dialog login popup asp.net website. experience similar digg.com. when log in, fancy popup modal dialog (provided jquery tools overlay control). dialog ascx file in master page, it's available globally. uses pagemethod validate current user. if validation succeeds, call window.location.reload(); in pagemethod's success callback.
this works great when logging in on page doesn't require authentication, when non-auth users trying navigate page requires auth?
is possible modify web.config file instead of redirecting signin.aspx page non-authenticated users invoke modal dialog instead?
let's non-authenticated user on default.aspx doesn't require auth. wants navigate "add.aspx" does require auth. what's best way handle modal dialog popup?
if have use dedicated page, guess i'll have signin.aspx page invokes dialog when loads , if authentication succeeds, it'll use javascript redirect destination page.
but ideally, i'd login default.page , redirect "add.aspx" script.
since didn't feedback , went ahead , "solved" issue conventionally. still have dedicated login.aspx page it's used in cases users navigate directly page requiring authentication.
in case, let asp.net redirect login.aspx, , using client script invoke popup dialog. normal authentication using webmethod , redirect needed. if user cancels dialog, redirect default.aspx.
seems there's no getting around need dedicated login page.
- Get link
- X
- Other Apps
Comments
Post a Comment