using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration; 
using System.Web.UI;
using System.Web;
using Meta.Web; 
namespace MetaSite.Components
{
    public class ErrMsg 
    {
        static string key = "LastErr";
        public static void ShowMessage(string msg)
        {
            ContextData context = ContextData.Current;
            context.Context.Session[key] = msg;
            context.Context.Response.Redirect(ConfigurationManager.AppSettings.Get("errpage"));
        }
    }
}
