我现在是在后台用
Response.Writer("<script language=javascript>window.open('网页地址');</sciprt>"
来弹出新的窗体的
用这种方法弹出窗体的缺点是很多拦截广告的软件都会拦截掉,这样窗体就弹不出来了,必须关闭该软件这个方法才能够行。
请问下哪位高手有没有好点儿的办法解决这个问题,谢了:)

解决方案 »

  1.   

    没太好的办法..如果你用window.open的话.尝试一下用<a href="url" target="_blank">open new</a>
      

  2.   

    Page.RegisterClientScriptBlock("aaaa","<script>window.open('网页地址')</script>");
      

  3.   

    没太好的办法..如果你用window.open的话.尝试一下用<a href="url" target="_blank">open new</a>这位大哥说的是,但是我需要在ASP.net背后执行事件,然后再确定是弹出哪些窗体来请问有什么办法没?
      

  4.   

    关于模态窗口(showModalDialog)的专题讨论!
    1.模态窗口的打开
    2.模态窗口的关闭
    3.模态窗口的传递参数。
    4.其他。
    1.window.showModalDialog("DialogPage.aspx","newwin","dialogHeight: 200px; dialogWidth: 150px; dialogTop: 458px; dialogLeft: 166px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;");2.window.close();3.传值
    ParentPage.aspx:
    window.showModalDialog("DialogPage.aspx?para1=aaa&para2=bbb");DialogPage.aspx:
    string str1=Request.QueryString["para1"].toString();
    string str2=Request.QueryString["para2"].toString();返回值
    DialogPage.aspx:
    window.returnValue="aaa";ParentPage.aspx:
    var str=window.showModalDialog("DialogPage.aspx");4.
    aspx页面在showmodeldialog情况下为什么一提交就重新打开一个页面?
    showmodaldialog打开的页面中在<head></head>之间加入一行:<base target="_self">
    ---------------------
    http://goody9807.611.cn