hello khorvat,
thank you for getting back to me.
actually I'm trying to make this work inside the current monox application. but i'm not sure if i'm doing it right. here is what i did:
I created a new page called login.aspx.cs and placed in Monox. like the following:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MonoSoftware.Core;
using MonoSoftware.Web.Security;
using MonoSoftware.MonoX.Pages;
/// <
summary
>
/// Summary description for Login
/// </
summary
>
public class Login
{
/// <
summary
>
/// Redirects the request after the successful login.
/// </
summary
>
public virtual void RedirectAfterLogin()
{
//redirect to home if there is no ReturnUrl
if (String.IsNullOrEmpty(FormsAuthentication.DefaultUrl) && String.IsNullOrEmpty(ctlLogin.DestinationPageUrl) && Page.Request["ReturnUrl"] == null)
Response.Redirect("/");
//do not redirect to message page as it will show the empty text
if (!string.IsNullOrEmpty(Request["ReturnUrl"]) && String.Equals(Request["ReturnUrl"], MonoSoftware.Web.UrlFormatter.ResolveUrl(ApplicationSettings.MessagePageUrl), StringComparison.CurrentCultureIgnoreCase))
Response.Redirect("/");
//otherwise the request will be redirected to the address stored in the ReturnUrl parameter
}
}
but I get errors indicated in bold. As I said, I'm not a programmer So this may seem foolish to you. I'm sure there is a procedure to do this in monox no?