Asp.net 环境下点击Button如何生成一个新页面

cym40011 2004-03-20 02:29:32
比如我想点击Button1生成500*500大小的新页面
...全文
90 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
xicunfu 2004-03-20
  • 打赏
  • 举报
回复
or
window.showModalDialog "a.aspx?",window,"dialogHeight:500px;dialogwidth:500px;status:no;scrollbars:no;toolbar:no;menubar:no;location:no;resizable:no"
zyw2833 2004-03-20
  • 打赏
  • 举报
回复
window.open
xicunfu 2004-03-20
  • 打赏
  • 举报
回复
sub button1_onclick()
window.open a.aspx,window,width=500,height=500
end sub
adayu2000 2004-03-20
  • 打赏
  • 举报
回复
你可以直接在页面上放一个Html的按钮,触发onclick="javascript:window.open(text.aspx);"
cym40011 2004-03-20
  • 打赏
  • 举报
回复
那如果在html设计器中能否实现呢?
cym40011 2004-03-20
  • 打赏
  • 举报
回复
在新页面编辑数据再添加到旧页面所连接的SQL数据库中
alan99 2004-03-20
  • 打赏
  • 举报
回复
'page.html' 弹出窗口的文件名;
  'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替;
  height=500 窗口高度;
  width=500 窗口宽度;
  toolbar=no 是否显示工具栏,yes为显示;
  menubar,scrollbars 表示菜单栏和滚动栏。
  resizable=no 是否允许改变窗口大小,yes为允许;
  location=no 是否显示地址栏,yes为允许;
  status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许;
anbeel 2004-03-20
  • 打赏
  • 举报
回复
在page_load中添加:

string strScript;
strScript="<script language=JavaScript>function openwin1(){window.open('test.aspx','','Height=500,Width=500,Top=200,Left=400,edge=1,center=1,resizable=1,status=0');}</script>";
if(!this.IsClientScriptBlockRegistered("openwin1"))
this.RegisterClientScriptBlock("openwin1", strScript);
Button1.Attributes.Add("onclick","openwin1()");
alan99 2004-03-20
  • 打赏
  • 举报
回复
Response.Write("<script>window.open ('page.html', 'newwindow', 'height=500, width=500,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no');</script>")
webdiyer 2004-03-20
  • 打赏
  • 举报
回复
生成新页面是干什么用的呢?
lchgzsw 2004-03-20
  • 打赏
  • 举报
回复
Response.Write("<script language=javascript>window.open('InforPage1.aspx?no="+int.Parse(e.Item.Cells[0].Text.ToString())+"&cno="+dataSet11.Tables["Users"].Rows[0]["CNo"]+"','_blank','width=500, height=500,top=0, left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no')</script>");

62,050

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

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