<script>
function ShowForm2()
{
   //...set form style
   window.open("****.aspx","","toolbar=no,location=no,directories=no,status=no,scrollbar=yes,menubar=no,resizable=yes,copyhistory=yes,width=630,height=500 ,top=20,left=100")//open form2
   
}
</script>
Button1.Attributes.Add("OnClick","JavaScript:ShowForm2();");

解决方案 »

  1.   

    Page.Response.Write("<script>window.open('your form');</script>");
      

  2.   

    在点击事件中加入:
    response.write("<script>window.open("abc.aspx")</script>)"
      

  3.   

    respone.redirect("others.asp");和response.write("<script>window.location='abc.aspx')</script>)"會在當前頁打開response.write("<script>window.open("abc.aspx")</script>)"會打開一單獨窗口
      

  4.   

    response.write("<script>window.open("test.aspx")</script>)"
      

  5.   

    如果是服务器端控件就在click事件里写:
    response.redirect("你想打开的页面")
    如果是客户端按钮就在html代码里按钮的属性里onclick="window.open('你想打开的页面','_new');"
    如果是服务器端控件又想在父框架里打开新页就在click事件里面写:
    response.write("<script>window.open('你想打开的页面','_parent')</script>")
    或者在pageload事件中给按钮添加客户端属性:
    你的按钮的ID.Attributes.Add("onclick", "window.open('你想打开的页面','_parent');")
      

  6.   

    this.respone.redirect("你想要转到的路径和页面");
      

  7.   

    使用簡單的客戶端button就行:
    <input type="button" onclick="javascript:window.open('你要打開的網頁');">
      

  8.   

    this.response.redirect()这个不行吧
      

  9.   

    我还忘了说!
    我想在点击Button按钮后,等处理完数据库插入操作后进入下一页!请问有啥方法实现其功能 
      

  10.   

    点击按钮进入一个页面 比如叫"doInsert.aspx"
    在这个页面里进行数据操作
    在数据库操作完之后redirect到目的页面
    就是说"doInsert.aspx"只是中间过渡罢了