Button1.Attributes["onClick"] = "javascript:window.open('./webform2.aspx?mysrt= & mystr _ & ','_blank');";
试试

解决方案 »

  1.   

    我又写了个简单的test,仿照问题的模式,结果正常运行,看样子问题出了其它方面,我再找找.
      

  2.   

    ajqc的做法应该可以
    按你的做法。你的BUTTON的事件是写在.ascx.vb中的。那么应该这样写:
    httpcontext.current.Response.Write("<script>window.open('./webform2.aspx?mysrt= & mystr _ & ','_blank')</script>")
      

  3.   

    问题解决了,结果是smart navigatic在搞鬼.我在调用页里把它设为真就出错,关闭它就成功,
    具体是什么原因望达人指点.另,ajqc的做法也出同样的错.