如何用一个<INPUT type="file">实现多图片上传? 如何用一个<INPUT type="file">实现多图片上传?类似于:http://beijing.263.com/Send1.aspx?SortID=65在线等~~~~~~~很着急~~~~~~~~~~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 private void uploadfile() { string finfo=""; for (int i = 0; i <= Request.Files.Count - 1; i++) { HttpPostedFile PostedFile = Request.Files[i]; if (PostedFile.ContentLength > 0) { string _int; if (PostedFile.ContentLength / 1024 > 1024) { _int = PostedFile.ContentLength / 1024 / 1024 + " MB"; } else if (PostedFile.ContentLength / 1024 > 1024) { _int = PostedFile.ContentLength / 1024 + " KB"; } else { _int = PostedFile.ContentLength + "字节"; } finfo = finfo + "文件名称:" + PostedFile.FileName + "<br>"; finfo = finfo + "文件大小:" + _int + "<br>"; finfo = finfo + "文件类型:" + PostedFile.ContentType + "<br>"; string[] filesplit = PostedFile.FileName.Split('\\'); string Filename = filesplit[filesplit.Length - 1]; if (Request["dir"]==null) { string path=Server.MapPath(System.Configuration.ConfigurationSettings.AppSettings["UP"]); PostedFile.SaveAs(path + Filename); Response.Redirect("Admin_Serverlist.aspx?dir="+path); } else { PostedFile.SaveAs(Request["dir"] +"\\"+ Filename); Response.Redirect("Admin_Serverlist.aspx?dir="+Request["dir"]); } } } fileinfo.InnerHtml = finfo; } wcf 使用net.tcp方式应该如何设置服务器端配置文件? 解压缩程序不好用附代码 杂七杂八小问题 急求用oledb连接sqlserver数据库的可执行源代码。:(,我的调试不通阿! 请问如何在C#中识别中文字符 媒体播放器循环播放音乐 [求助]关于IMAP获取邮件的问题 关于c#中的数据库开发。 如何向oracel数据库中插入图像 如何捕获以下的错误 findWindowEx不好用?找不到我要找的窗体..究竟是怎么回事?谁能帮我解决这个问题?? C#中,如果数据绑定到TextBox或DataGrid,如何在更新之前验证数据?
{
string finfo="";
for (int i = 0; i <= Request.Files.Count - 1; i++)
{
HttpPostedFile PostedFile = Request.Files[i];
if (PostedFile.ContentLength > 0)
{
string _int;
if (PostedFile.ContentLength / 1024 > 1024)
{
_int = PostedFile.ContentLength / 1024 / 1024 + " MB";
}
else if (PostedFile.ContentLength / 1024 > 1024)
{
_int = PostedFile.ContentLength / 1024 + " KB";
}
else
{
_int = PostedFile.ContentLength + "字节";
}
finfo = finfo + "文件名称:" + PostedFile.FileName + "<br>";
finfo = finfo + "文件大小:" + _int + "<br>";
finfo = finfo + "文件类型:" + PostedFile.ContentType + "<br>";
string[] filesplit = PostedFile.FileName.Split('\\');
string Filename = filesplit[filesplit.Length - 1];
if (Request["dir"]==null)
{
string path=Server.MapPath(System.Configuration.ConfigurationSettings.AppSettings["UP"]);
PostedFile.SaveAs(path + Filename);
Response.Redirect("Admin_Serverlist.aspx?dir="+path);
}
else
{
PostedFile.SaveAs(Request["dir"] +"\\"+ Filename);
Response.Redirect("Admin_Serverlist.aspx?dir="+Request["dir"]);
}
}
}
fileinfo.InnerHtml = finfo;
}