摘要:
protected void Button1_Click(object sender, EventArgs e) { /* 微软为Response对象提供了一个新的方法TransmitFile来解决使用Response.BinaryWrite 下载超过400mb的文件时导致Aspnet_wp.exe进程回收而无法成功下载的问题。 代码如下: */ Response.ContentType = "application/x-zip-compressed"; Response.AddHeader("Content-Disposition", "at 阅读全文
posted @ 2011-03-04 17:46
Marksion
阅读(6596)
评论(11)
推荐(3)
摘要:
--查询当天: select * from info where DateDiff(dd,datetime,getdate())=0 --查询24小时内的: select * from info where DateDiff(hh,datetime,getDate())<=24 --info为表名,datetime为数据库中的字段值 --查询当天:select * from info where DateDiff(dd,datetime,getdate())=0 --查询24小时内的:select * from info where DateDiff(hh,datetime,getDa 阅读全文
posted @ 2011-03-04 10:15
Marksion
阅读(906)
评论(2)
推荐(1)
摘要:
ASP.NET程序中常用的三十三种代码 转:向东博客 1. 打开新的窗口并传送参数: 传送参数:response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>")接收参数:string a = Request.QueryString("id");string b = Request.QueryString("id1");2.为按钮添加对话框Bu 阅读全文
posted @ 2011-03-04 09:44
Marksion
阅读(402)
评论(0)
推荐(0)

浙公网安备 33010602011771号