vs 2008中asp.netのC〓ヒント情報とページジャンプ問題


  ,              
    :
    #region MsgBox
    /// <summary>
    ///   “  ”,               
    /// </summary>
    /// <param name="_Msg">    </param>
    /// <param name="URL">“  ”         </param>
    /// <returns>   JS</returns>
    public void MsgBox(string strMsg, string URL)
    {
        string StrScript;
        StrScript = ("<script language=javascript>");
        StrScript += ("alert('" + strMsg + "');");
        StrScript += ("window.location='" + URL + "';");
        StrScript += ("</script>");
        System.Web.HttpContext.Current.Response.Write(StrScript);
    }
    #endregion

  :
   MsgBox("     ,           !","Default2.aspx");

    !