没问题啊
ASP.NET自身就支持文件上传
try
{
string fnm=this.file1.PostedFile.FileName;
fnm=fnm.Substring(fnm.LastIndexOf("\\"));
SqlCommand cmd=new SqlCommand("select top 1 id from "+this.tables.SelectedItem.Value+" order by id desc",(SqlConnection)Application["conn"]);
int id=Int32.Parse(cmd.ExecuteScalar().ToString())+1;
if(!Directory.Exists(Server.MapPath(this.tables.SelectedItem.Value+"\\"+id)))
Directory.CreateDirectory(Server.MapPath(this.tables.SelectedItem.Value+"\\"+id));
                this.file1.PostedFile.SaveAs(Server.MapPath(this.tables.SelectedItem.Value+"\\"+id+"\\"+fnm));
this.fileinfo.InnerHtml+=this.tables.SelectedItem.Value+"\\"+id+fnm+"<br>";
}
catch(Exception e1)
{
Response.Write(e1.ToString());
}