String strReturnPageUrl ="www.google.com";
protected void Page_Error(object sender, EventArgs e)
{
Exception ex = Server.GetLastError();
if (ex is HttpRequestValidationException)
{
Session.Clear();
JSUtil.AlertSussTranscation("請勿輸入特殊字元!", strReturnPageUrl);
}
}
沒有留言:
張貼留言