http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=762

解决方案 »

  1.   

    在webform2.aspx中:
    ...
    <body ...>
    <base target="_self">
    ...这样才行
      

  2.   

    <body ...>
    <base target="_self">
     
    timmy3310(tim) ,小弟不懂,能详细一些吗?谢谢
      

  3.   

    target代表窗口打开的类型。
    即:在新窗口打开....
      

  4.   

    <HTML>
    <HEAD>
    <title>Calendar</title>
    <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
    <meta content="C#" name="CODE_LANGUAGE">
    <meta content="JavaScript" name="vs_defaultClientScript">
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    <base target="_self"> ////add this
    </HEAD>
      

  5.   

    谢谢!
    http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=762试过了,但有一样的问题。
    加入<base target="_self">后,在showModalDialog窗口下,回发服务器还是会开新窗口
      

  6.   

    用框架
    再用showModalDialog如果你的代碼沒問題的話,一定是可以的
      

  7.   

    你用showmodaldialog打开一个模式窗,你想要提交webform2.aspx,
    最好是把webform2.aspx放到模式窗的 iframe中去,提交的时候才不会打开一个新的窗口window.showModalDialog("webform3.aspx);webform3.aspx
    <html>
    <body>
    <iframe topmargin="0" leftmargin="0" src="webform2.aspx"></iframe>
    <body>
    </html>
      

  8.   

    在webform1.aspx中

    <head>
       <base target="_self">
    ...
    </head>
      

  9.   

    在<head>与</head>之间加入<base target="_self">
    这样是正确的
      

  10.   

    fly_miss(思念)谢谢,这么是要一个溶器来放webform2.aspx,我试试先。
      

  11.   

    fly_miss(思念)谢谢谢谢,可以哦,不过是要3个aspx才可以,是吗?
    谢谢