后台:
public string Post()
{
string key = HttpContext.Current.Request["key"];
string value = HttpContext.Current.Request["value"];
HttpFileCollection files = HttpContext.Current.Request.Files;
foreach (string f in files.AllKeys)
{
HttpPostedFile file = files[f];
if (string.IsNullOrEmpty(file.FileName) == false)
file.SaveAs(HttpContext.Current.Server.MapPath("~/App_Data/") + file.FileName);
}
return key + value;
} public string Post()
{