up

解决方案 »

  1.   

    /// <summary>
    /// 提示,本页重定向到Url
    /// </summary>
    /// <param name="html"></param>
    /// <param name="url"></param>
    /// <returns></returns>
    public static string jsAlertAndTransferUrl(string alert,string url)
    {
    string OutPutHtml = "";
    OutPutHtml += "<script language='javascript'>";
    OutPutHtml += "  alert('" + alert + "');" ;
    OutPutHtml += "  window.location.href = '" + url + "';" ;
    OutPutHtml += "</script>";
    return OutPutHtml;
    }
      

  2.   

    Redirect就是跳转的意思,不能打开新页面,可以试试Response.Write("<script>window.open('new.aspx');</script>");
      

  3.   

    Response.Write("<script>window.open('new.aspx');</script>");
     应该是一种方法要不你只能在客户段用javascript
    window.open(...............)