Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have my website in which there are free links and links that require login. Free links open even if the user is not logged in. But in case of links that require login, redirect to login.aspx specified in Web.Config in loginURL tag.

I want some way to override this and show Ajax modal popup (Ajax extender toolkit) with login control for only those links that require login (not for the free links).

And yes, I am using Master Page for the web application.

Please help me in achieving this functionality. :sigh:

Thanks,
Amit
Posted
Updated 19-Jan-11 23:54pm
v4

I dont understand the meaning of overriding in your context.
Whenever any link needs login, you just need to check on Pageload of that page, if the user is not loggedin, the open the login page in modelpopup. You can achieve this using iframe in modelpopup. Once user authenticated, you can redirect the user to appropriate page.
 
Share this answer
 
Comments
Wild-Programmer 1-Dec-10 3:07am    
Brij you did not understand my question. When a page is opened which required authentication first, the application will redirect to Login page without going to the requested page. I dont want to go to the login page, instead I want to track when the login page gets called and open the modal popup (which is already there in Ajax extender toolkit for .net 3.5)

I just need to understand how to know which request needs authentication. If I can track that, I can make everything workout.
I developed the answer of my question myself. I posted an article on code project for this @ Redirect to login modal popup instead of login page in Form Authentication[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900