页面跳转

13人阅读 评论(0) 收藏 举报
C#在Asp.net中实现打开新网页而不关闭当前页
Respose.Write("<script <wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">language='javascript'&gt;window.open('"+ </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">url </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">+"');&lt;/script&gt;"); </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">(打开简洁窗口):</span><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">Respose.Write("&lt;script </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">language='javascript'&gt;window.open('" </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">+ </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">url </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">+ </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">"','','resizable=1,scrollbars=0,status=1,menubar=no,toolbar=no,location=no, </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">menu=no');&lt;/script&gt;");</span><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">1.Response.Redirect("XXX.aspx",true)——直接转向新的页面,原窗口被代替;</span><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">2. Response.Write("&lt;script&gt;window.open('XXX.aspx','_blank')&lt;/script&gt;")——原窗口保留,另外新增一个新页面;</span><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">3.Response.Write("&lt;script&gt;window.location='XXX.aspx'&lt;/script&gt;")——打开新的页面,原窗口被代替;</span><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">4.Server.Transfer("XXX.aspx")——打开新的页面;</span><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">5.Response.Write("&lt;script&gt;window.showModelessDialog('XXX.aspx')&lt;/script&gt;")——原窗口保留,以对话框形式打开新窗口;</span><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">6.Response.Write("&lt;script&gt;window.showModelDialog('XXX.aspx')&lt;/script&gt;")——对话框形式打开新窗口,原窗口被代替;</span></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
C#在Asp.net中实现打开新网页而不关闭当前页
Respose.Write("<script <wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">language='javascript'&gt;window.open('"+ </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">url </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">+"');&lt;/script&gt;"); </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">(打开简洁窗口):</span><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">Respose.Write("&lt;script </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">language='javascript'&gt;window.open('" </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">+ </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">url </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">+ </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">"','','resizable=1,scrollbars=0,status=1,menubar=no,toolbar=no,location=no, </span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)"></span><wbr style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">menu=no');&lt;/script&gt;");</span><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">1.Response.Redirect("XXX.aspx",true)——直接转向新的页面,原窗口被代替;</span><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">2. Response.Write("&lt;script&gt;window.open('XXX.aspx','_blank')&lt;/script&gt;")——原窗口保留,另外新增一个新页面;</span><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">3.Response.Write("&lt;script&gt;window.location='XXX.aspx'&lt;/script&gt;")——打开新的页面,原窗口被代替;</span><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">4.Server.Transfer("XXX.aspx")——打开新的页面;</span><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">5.Response.Write("&lt;script&gt;window.showModelessDialog('XXX.aspx')&lt;/script&gt;")——原窗口保留,以对话框形式打开新窗口;</span><br style="text-align:left; color:rgb(70,70,70); line-height:21px; font-family:simsun; font-size:14px; background-color:rgb(188,211,229)"><span style="font-family:simsun; font-size:14px; color:#464646; text-align:left; line-height:21px; background-color:rgb(188,211,229)">6.Response.Write("&lt;script&gt;window.showModelDialog('XXX.aspx')&lt;/script&gt;")——对话框形式打开新窗口,原窗口被代替;</span></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值