<input type="file">上传文件

string filename = this.loading.Value;
if (filename != "")
{
string urlb = Server.MapPath("images/banner/");
var img = Context.Request.Files["loading"];
img.SaveAs(urlb + filename);
url = filename;
}

posted @ 2017-06-20 08:42  我是怎样变成程序猿的  阅读(450)  评论(0编辑  收藏  举报