一次上传多个文件

protected void Button1_Click1(object sender, EventArgs e) { string filePath = "d://"; HttpFileCollection upfiles = Request.Files; for (int i = 0; i { H …… 阅读全文

修改上传文件大小的限制

maxRequestLength 默认是4096K,修改此属性就可以修改上传文件的大小限制。executionTimeout 为超时时间。如果上传文件较大,应该修改此值以防超时。 …… 阅读全文

创建自定义类型的强类型化集合

以下创建了一个Person类型的强类型化集合。using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.We …… 阅读全文

快速、大量、简单的复制两个数据库之间的数据。

protected void Button1_Click(object sender, EventArgs e) { string sString; string nString; SqlConnection sConn = new SqlConnection(); SqlConnection nConn = new SqlCon …… 阅读全文

===都是缓存惹的祸=====

一、用AJAX访问数据时的问题。下面是ajax代码:var xmlHttp;var popWindow;function createXMLHttpRequest(){ if(window.ActiveXObject) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } else if(window.XMLHttpReque …… 阅读全文

FreeTextBox 上传到虚拟主机上提示错误,且无法显示图片的解决办法。

FreeTextBox上传到虚拟主机后,FreeTextBox出现以下错误,且图片无法显示 。FreeTextBox has not been correctly installed. To install FreeTextBox either:(1) add a reference to FtbWebResource.axd in web.config:path="FtbWebResourc …… 阅读全文