protected void Page_Load(object sender, EventArgs e)
{
  string roomname = Request.QueryString["RoomName"];
  Response.Write(roomname)}这代码写在swith.aspx.cs页面吗

解决方案 »

  1.   

    Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "window.showModalDialog('switch.aspx?RoomName="+roomname+"','','dialogHeight:200px;dialogWidth:220px;edge: Raised;center:no;help: no; resizable: off; status: no;unadorned:no;scroll:no;resizable:no;help:no');",true);你的?是中文的,必须是英文的才行
      

  2.   

    最好进行下编码
    Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "window.showModalDialog('switch.aspx?RoomName="+ Server.UrlEncode(roomname) + "','','dialogHeight:200px;dialogWidth:220px;edge: Raised;center:no;help: no; resizable: off; status: no;unadorned:no;scroll:no;resizable:no;help:no');",true);