一次上传多个文件
protected void Button1_Click1(object sender, EventArgs e) { string filePath = "d://"; HttpFileCollection upfiles = Request.Files; for (int i = 0; i { H …… 阅读全文
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 has not been correctly installed. To install FreeTextBox either:(1) add a reference to FtbWebResource.axd in web.config:path="FtbWebResourc …… 阅读全文