Response.Write("<script>window.open('pralook.aspx?xxx="+str_temp+"','','');</script>");如果有两个参数要传递该怎么写?

解决方案 »

  1.   

    string str_temp2="2";
    Response.Write("<script>window.open('pralook.aspx?
    xxx="+str_temp+"&YYY="+str_temp2+"','','');</script>");
      

  2.   

    string s1="123";
    string s2="345";
    string s="page1.aspx?x="+s1+"&y="+s2;Response.Write("<script>window.open('+s+','','');</script>");
      

  3.   

    Response.Write("<script>window.open('pralook.aspx?xxx="+str_temp+"&yyy="+str_temp2+"','','');</script>");
      

  4.   

    Response.Write("<script>window.open('pralook.aspx?xxx="+str_temp+"&yyy="+ str_Temp1 + "','','');</script>");