close

#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

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 包爾伯 的頭像
    包爾伯

    人生過程精彩才是重點

    包爾伯 發表在 痞客邦 留言(0) 人氣()