Asp.net弹出窗口大全
Dim strScript As String = "<Script Language='VBScript'>" &vbCrLf
strScript &= "opener.parent.document.location.href=""" &"../Individual/UserJobs.aspx?EntityTableID=" &Request("EntityTableID") &"&ListID=" &BLL.TableType.Entity &"&OrgID=" &Request("OrgID") &"&TableID=" &oRightGroupAccessTableView.TemplateTable.TableID &IIf(Request("RecordID") Is Nothing, "", "&RecordID=" &Request("RecordID")) &"""" &vbCrLf
strScript &= "</Script>" &vbCrLf
Response.Write(strScript)
//关闭,父窗口弹出对话框,子窗口直接关闭
this.Response.Write("<script language=javascript>window.close();</script>");
//关闭,父窗口和子窗口都不弹出对话框,直接关闭
this.Response.Write("<script>");
this.Response.Write("{top.opener =null;top.close();}");
this.Response.Write("</script>");
//弹出窗口刷新当前页面width=200 height=200菜单。菜单栏,工具条,地址栏,状态栏全没有
this.Response.Write("<script language=javascript>window.open('rows.aspx','newwindow','width=200,height=200')</script>");
//弹出窗口刷新当前页面
this.Response.Write("<script language=javascript>window.open('rows.aspx')</script>");
this.Response.Write("<script>window.open('WebForm2.aspx','_blank');</script>");
//弹出提示窗口跳到webform2.aspx页(在一个IE窗口中)
this.Response.Write(" <script language=javascript>alert('注册成功');window.window.location.href='WebForm2.aspx';</script> ");
//关闭当前子窗口,刷新父窗口
this.Response.Write("<script>window.opener.location.href=window.opener.location.href;window.close();</script>");
this.Response.Write("<script>window.opener.location.replace(window.opener.document.referrer);window.close();</script>");
//子窗口刷新父窗口
this.Response.Write("<script>window.opener.location.href=window.opener.location.href;</script>");
this.Response.Write("<script>window.opener.location.href='WebForm1
相关文档:
上一篇文章详细介绍了如何利用ASP.NET MVC创建自己的页面,在文章介绍了如何利用ViewData由Controller向View文件传值,那新的问题再次出现,我们除了能显示aspx文件外还能显示其它的文件么?
本文将详细介绍如何向View传值。
一、ViewData与TempData属性来向View页传递对象
上文中已经提到,使用ViewData可以将数据由Cont ......
SqlConnection conPortal = new SqlConnection(CommunityGlobals.ConnectionString);
SqlCommand cmdAdd = new SqlCommand( "Community_Disc ......
一、原理:
要实现进度条的实时反映,核心的技术就是对上传的数据进行“分块”读取,在读取每块数据时记录当前已上传的块数,根据
分块的大小,即可知道已上传的大小,根据总大小,即可知道当前上传的进度。具体的技术还是利用隐含的HttpWorkerRequest
,用它的GetPreloadedEn ......
1、解决Cookie更新滞后的问题
先写入一个过期的Cookie,再添加一个新的Cookie就OK了。示例代码如下所示:
protected void btnSearch_Click(object sender, EventArgs e)
{
//生成条件表达式
string where = bll.GetWhereSql(Int32.Parse(ddlCate.SelectedValue),
......
在软件开发中,把数据从一个地方复制到另一个地方是一个普遍的应用。
在很多不同的场合都会执行这个操作,包括旧系统到新系统的移植,从不同的数据库备份数据和收集数据。 ASP.NET
2.0有一个SqlBulkCopy类,它可以帮助你从不同的数据源复制数据到SQL SERVER数据库。
本文中我将示范SqlBulkCopy类的不同应用。
数据库设 ......