?? systemtools.cs
字號:
?using System;
using System.Collections.Generic;
using System.Text;
namespace OleDbHelper
{
public class SystemException : Exception
{
/// <summary>
/// 包含系統Excepton
/// </summary>
public SystemException(string source, string message, Exception inner)
: base(message, inner)
{
base.Source = source;
}
/// <summary>
/// 不包含系統Excepton
/// </summary>
public SystemException(string source, string message)
: base(message)
{
base.Source = source;
}
}
/// <summary>
/// 處理網頁中的HTML代碼,并消除危險字符
/// </summary>
public class SystemHTML
{
private static string HTMLEncode(string fString)
{
if (fString != string.Empty)
{
///替換尖括號
fString.Replace("<", "<");
fString.Replace(">", "&rt;");
///替換引號
fString.Replace(((char)34).ToString(), """);
fString.Replace(((char)39).ToString(), "'");
///替換空格
fString.Replace(((char)13).ToString(), "");
///替換換行符
fString.Replace(((char)10).ToString(), "<BR> ");
}
return (fString);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -