Last post Oct 14, 2010 02:31 PM by konanki
Oct 14, 2010 02:19 PM|dieseldave|LINK
The login controls that are included with visual studio are easy to use, but we are supposed to have a modal login window instead of redirecting the user to a login page and back... Anyone know of any examples of this that still leverage the .net membership
tables? The request was to use a Facebook type modal window. I guess this style window can be implemented with jquery (although I am not familiar with it...) but I would like to stick with the ,net membership tables...
Oct 14, 2010 02:30 PM|hareshambaliya|LINK
read following article. there is also sample code.
Oct 14, 2010 02:31 PM|konanki|LINK
try like below
<forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
protected void Page_Load(object sender, EventArgs e)
RegisterUser.ContinueDestinationPageUrl = Request.QueryString["ReturnUrl"];
protected void RegisterUser_CreatedUser(object sender, EventArgs e)
FormsAuthentication.SetAuthCookie(RegisterUser.UserName, false /* createPersistentCookie */);
string continueUrl = RegisterUser.ContinueDestinationPageUrl;
continueUrl = "~/";
RegisterHyperLink.NavigateUrl = "Register.aspx?ReturnUrl=" + HttpUtility.UrlEncode(Request.QueryString["ReturnUrl"])