I have file upload control control inside gridview edit template.when i edit perticular row and upload new file then on row updating can not pick file from file upload.It get null value
Here is my code
FileUpload FileUpload1 = (FileUpload)gv_banner.Rows[e.RowIndex].FindControl("file_edit_banner");
if (file_edit_banner1.HasFile)
{
Random rd = new Random();
int random = rd.Next();
banner = Convert.ToString(lbl_banner_image.Text);
string path = "../images/banner/";
file_edit_banner1.SaveAs(Server.MapPath(path + banner));
}
pls give me any suggession if any ?