Last post Oct 14, 2010 10:31 AM by konanki
Oct 14, 2010 10:19 AM|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 10:30 AM|hareshambaliya|LINK
read following article. there is also sample code.
Oct 14, 2010 10:31 AM|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"])