1个回答
展开全部
够穷的.
protected void Button1_Click(object sender, EventArgs e)
{
string fn = System.IO.Path.GetFileName(File1.PostedFile.FileName);
string SaveLocation = Server.MapPath("attachment") + "\\" + File1.PostedFile.FileName;
File1.PostedFile.SaveAs(SaveLocation);
}
protected void Button1_Click(object sender, EventArgs e)
{
string fn = System.IO.Path.GetFileName(File1.PostedFile.FileName);
string SaveLocation = Server.MapPath("attachment") + "\\" + File1.PostedFile.FileName;
File1.PostedFile.SaveAs(SaveLocation);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询