随机文件名生成可用于文件上传(图片)
protected string makeFileName() { Random myrd = new Random(); string filename = DateTime.Now.ToString().Replace("-", "").Replace(":", "").Replace(" ", "") + myrd.Next(1000).ToString(); return filename; } //Response.Write(makeFileName());