请问大侠们,怎么链接一个新的aspx?(多谢高手指点!)

linxi27 2004-11-06 01:17:51
除了response.redirect("*.aspx")之外,请问还有其他的调用页面的方法吗?
因为response.redirect("*.aspx")调用另外一个页面的同时就关闭了当前的页面,有没有方法可以调出第二个页面,却不关闭第一个页面
多谢高手指点
...全文
95 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
linxi27 2004-11-08
  • 打赏
  • 举报
回复
多谢大家的帮助
linxi27 2004-11-08
  • 打赏
  • 举报
回复
给分
Pound0723 2004-11-06
  • 打赏
  • 举报
回复
wo zhi zhi dao zhe san ge
1.Server.Transfer( "index.aspx" );
2.Response.Redirect( "ondex.aspx" );
3.Response.Write( "<script language="javascript">window.open( "index.aspx" );</script>" );
EricBai 2004-11-06
  • 打赏
  • 举报
回复
呵呵,不好意思,有多了一个 '
这回的肯定没问题
Response.Write("<script language=javascript>window.open('yourAspx.aspx');</script>")
EricBai 2004-11-06
  • 打赏
  • 举报
回复
哦,忘掉了一个 '
下面这个可以
Response.Write("<script language=javascript>window.open('yourAspx.aspx'.aspx');</script>")
EricBai 2004-11-06
  • 打赏
  • 举报
回复
你说的是弹出一个新的浏览器吧。
Response.Write("<script language=javascript>window.open(yourAspx.aspx');</script>")
xu123 2004-11-06
  • 打赏
  • 举报
回复
<% string str=System.DateTime.Today.Month.ToString();
str +="/";
str +=System.DateTime.Today.Day.ToString();

string strpath="<script language=";
strpath +="JavaScript";
strpath +=">function openwin(){";
OleDbDataReader dr=ReadData("notifyTable");
while(dr.Read())
{
if(str.CompareTo(dr["notify_date"].ToString().Substring(5))==0)
{
strpath +="window.open(\"";
strpath +="http://xsl/myweb/users_login/notify/";
strpath +=dr["notify_name"].ToString();
strpath +="\",";
strpath +="\"newwindow\"";
strpath +=", ";
strpath +="\"height=600, width=800, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no\"";
strpath +=") ;";

}
}
strpath +="}</script>";

Response.Write(strpath);
%>
这是我用C#写的,调用了js中的window.open
xu123 2004-11-06
  • 打赏
  • 举报
回复
Up先
linxi27 2004-11-06
  • 打赏
  • 举报
回复
有高手的请指点一下,谢谢

16,554

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧