my aspx code.
<asp:FileUpload runat="server" ID="file_PurchesItems" />
my c# code.
string Fpurchesitems = string.Empty;
HttpPostedFile fileup = HttpContext.Current.Request.Files["file_PurchesItems"];
Fpurchesitems = "flinvoice_" + DateTime.Now.Date.ToString("dd_MM_yyyy") + "_" + fileup.FileName.ToString();
fileup.SaveAs(HttpContext.Current.Server.MapPath("Images1/")+ Fpurchesitems);
but I am getting httppostedfile is null.
What is wrong and how do I solve that?