asp.net 中怎样点一个按钮弹出一个网页
来源:互联网 发布:北恩uc3软件下载 编辑:程序博客网 时间:2024/06/10 21:19
1.
弹出窗口:
this.Label.Text = "<a onclick=window.open('"+index.aspx?ContactNo="+a.ToString()+"','popuppage','width=400,height=380,top=130,left=200,scrollbars,resizable') style='CURSOR: hand'>"+e.Item.Cells[2].Text.ToString()+"</a>";
2.
private void Button1_Click(object sender, System.EventArgs e)
{
this.Page.RegisterStartupScript("open","<script>window.open('WebForm1.aspx');</script>");
}
3.超链接打开
temp.Append(" <TD>");
temp.Append(" <A href='"+XframeSysInfo.SysRoot+"Go.aspx?ModuleID=CRMPSReport&ReportName=ProjectDetail&startdate="+this.uctrlSelectDate.BeginDate.ToShortDateString()+"&enddate"+this.uctrlSelectDate.EndDate.ToShortDateString()+"&area="+this.uctrlSelectArea.SelectAreas+"&month="+i.ToString()+"'>");
temp.Append(" </TD>");
4.新窗口中打开
temp.Append(" <TD align=/"center/" class=/"TableContent/" border=1 style=/"border-collapse:collapse;border-color:#5BA7F0;/">"
+ "<a onclick=window.open('"+this.XframeSysInfo.SysRoot + this.XframeSysInfo.MainPage.Name+"?ModuleID=CRMPSReport&ReportName=ProjectDetail&startdate="+this.uctrlSelectDate.BeginDate.ToShortDateString()+"&enddate"+this.uctrlSelectDate.EndDate.ToShortDateString()+"&area="+this.uctrlSelectArea.SelectAreas+"&month="+i.ToString()+"','popuppage','width=800,height=600,top=60,left=100,scrollbars,resizable') style='CURSOR: hand'>"+i.ToString()+"</a>"+
"</TD>");
弹出窗口:
this.Label.Text = "<a onclick=window.open('"+index.aspx?ContactNo="+a.ToString()+"','popuppage','width=400,height=380,top=130,left=200,scrollbars,resizable') style='CURSOR: hand'>"+e.Item.Cells[2].Text.ToString()+"</a>";
2.
private void Button1_Click(object sender, System.EventArgs e)
{
this.Page.RegisterStartupScript("open","<script>window.open('WebForm1.aspx');</script>");
}
3.超链接打开
temp.Append(" <TD>");
temp.Append(" <A href='"+XframeSysInfo.SysRoot+"Go.aspx?ModuleID=CRMPSReport&ReportName=ProjectDetail&startdate="+this.uctrlSelectDate.BeginDate.ToShortDateString()+"&enddate"+this.uctrlSelectDate.EndDate.ToShortDateString()+"&area="+this.uctrlSelectArea.SelectAreas+"&month="+i.ToString()+"'>");
temp.Append(" </TD>");
4.新窗口中打开
temp.Append(" <TD align=/"center/" class=/"TableContent/" border=1 style=/"border-collapse:collapse;border-color:#5BA7F0;/">"
+ "<a onclick=window.open('"+this.XframeSysInfo.SysRoot + this.XframeSysInfo.MainPage.Name+"?ModuleID=CRMPSReport&ReportName=ProjectDetail&startdate="+this.uctrlSelectDate.BeginDate.ToShortDateString()+"&enddate"+this.uctrlSelectDate.EndDate.ToShortDateString()+"&area="+this.uctrlSelectArea.SelectAreas+"&month="+i.ToString()+"','popuppage','width=800,height=600,top=60,left=100,scrollbars,resizable') style='CURSOR: hand'>"+i.ToString()+"</a>"+
"</TD>");
- asp.net 中怎样点一个按钮弹出一个网页
- asp.net 点击按钮弹出一个页面
- VC中怎样点击按钮弹出一个对话框
- ASp.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASp.NET弹出一个对话框
- ASP.NET中如何弹出一个消息框(转)
- ASP编写一个网页界面,页面中设置按钮,按钮能够调用外部命令行程序
- ASP.net,Jquery弹出一个子页面
- mm为什么喜欢穿短裙?
- 我爱病毒
- 取当前时间(C++)
- VS2005 工程建立方法
- 月台
- asp.net 中怎样点一个按钮弹出一个网页
- 批处理文件简介与编写
- 技术人生的发展4
- E2Snes9X,SFC的模拟器(源码已重新更新)
- 心与心的距离
- asp.net如何禁止从外部提交
- 软件项目中的质量管理
- 使用dom4j解析XML例子
- ATI 驱动教程