⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showexception.cs

📁 1、用SQL查询器打开install目录下的dooogo.sql运行之后创建数据库dooogo。 2、然后打开web.config修改 <DbProvider type="Club.Fram
💻 CS
字号:
using System;
using System.Web;
using Club.Framework.Configuration;
namespace Club.Framework
{
	/// <summary>
	/// Exception 的摘要说明。
	/// </summary>
	public class ShowException:ApplicationException
	{
		/// <summary>
		/// 异常触发过程 
		/// </summary>
		public ShowException(string message,string backUrl)
		{
			HttpContext.Current.Response.Redirect(Globals.GetWebPath(Config.ShowMessage)+"?Url="+backUrl+"&Message="+message,true);
		}
		public ShowException(string message)
		{
			HttpContext.Current.Response.Redirect(Globals.GetWebPath(Config.ShowMessage)+"?Url="+HttpContext.Current.Request.RawUrl+"&Message="+message,true);
		}
		public ShowException(string message,bool isClose)
		{
			if(isClose)
			{
				HttpContext.Current.Response.Redirect(Globals.GetWebPath(Config.ShowMessage)+"?Message="+message,true);
			}
			else
			{
				HttpContext.Current.Response.Redirect(Globals.GetWebPath(Config.ShowMessage)+"?Url="+HttpContext.Current.Request.RawUrl+"&Message="+message,true);
			}
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -