var file = Request.Files[0]; Random rnd = new Random(); name = rnd.Next(111, 9999).ToString() + "_" + System.IO.Path.GetFileName(file.FileName); string fullPath = Path.Combine(Server.MapPath("~/Content/Bannerimages"), name); file.SaveAs(fullPath);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)