我现在想打开一个页面
string strUrl = "Showhistory.aspx?name=" + "qinshan";
Response.Write("<script>window.open(\"" + strUrl + "\",\"_blank\",\"\")</script>");我想在页面上传过去的参数是name="qinshan",
而不是name=qinshan
这个该怎么写啊???

解决方案 »

  1.   

    try
    string strUrl = "Showhistory.aspx?name=\"qinshan\"";
    Response.Write("<script>window.open('" + strUrl + "',\"_blank\",\"\")</script>");
      

  2.   

    string strUrl = "test2.aspx?name=" + "\\\"qinshan\\\"";
    Response.Write("<script>window.open(\"" + strUrl  + "\",\"_blank\",\"\")</script>");
      

  3.   

    Response.Write("<script>window.open('Showhistory.aspx?
    name="+"qinshan"+"','newwin','height=600,width=500,top=50,left=200 ,status=yes,toolbar=no,menubar=no,location=no')</script>");
    没错...接分喽~~~
      

  4.   

    string strUrl = "Showhistory.aspx?name=\"qinshan\"";
      

  5.   

    string strUrl = "Showhistory.aspx?name=\"qinshan\"";
    Response.Write("<script>window.open('" + strUrl + "',\"_blank\",\"\")</script>");