Response.Write("<script>");
Response.Write("window.open('yy.aspx');");
Response.Write("</"+"script>");

解决方案 »

  1.   

    改成如下:
    Response.Write("window.open(\'yy.aspx\');");
      

  2.   

    你在属性生成器了设置,linkbutton这个列设为超链接列.在URL字段里写你的表的ID字段.然后在URL格式字符串里写“你的页面.aspx?id={0}”就行了
      

  3.   

    windowAttribs = "width=" & width & "px," & _
                "height=" & height & "px," & _
                "left='+((screen.width -" & width & ") / 2)+'," & _
                "top='+ (screen.height - " & height & ") / 2+'"  'Building the client script - window.open, with additional parameters
      clientScript = "window.open('" & PagePath & "','" & windowName & "','" & windowAttribs & "');return false;"
      'register the script to the clientside click event of 'opener' control
      button.Attributes.Add("onClick", clientScript)
      

  4.   

    Response.Write("window.open(\'yy.aspx\');"
      

  5.   

    第2个问题:要写为OnClick,另外,可以设断点看看是否执行了ClickBtn中的代码
      

  6.   

    问题的解决惊人的奇怪。孟子E章胜出!为什么会这样?不知道,傻眼了。呵呵。给分结贴了。Nicholasqpl的方法没有办法尝试:因为我用文本写的。OnClick是因为笔误。感谢各位热心!!