#region ShowMSG
/// <summary>
/// 顯示訊息後,前往某頁面
/// </summary>
/// <param name="MSG">訊息內容</param>
/// <param name="BackTo">網頁</param>
private void ShowMSG(string MSG,string BackTo)
{
Response.Write("<script language=\"javascript\">\n");
Response.Write("alert(\"" + MSG + "\");\n");
Response.Write("window.location.href='"+BackTo+"'");
Response.Write("\n</script>\n");
}
#endregion
#Region "顯示訊息後,前往某頁面"
''' <summary>
''' 顯示訊息後,前往某頁面
''' </summary>
''' <param name="MSG">訊息內容</param>
''' <param name="BackTo">網頁</param>
''' <remarks></remarks>
Private Sub ShowMSG(ByVal MSG As String, ByVal BackTo As String)
Response.Write("<script language=""javascript"">")
Response.Write("alert(""" + MSG + """);")
Response.Write("window.location.href='" + BackTo + "'")
Response.Write("</script>")
End Sub
#End Region
留言列表