How would I get the Filename of a FileUpload control which is in an edittemplate of a listview ... I need to store the value in a db. The listview is populated with a sqldatasource, which handles all the selection and updating, so I am not sure how to capture its value on the listview update (how to bind it to datasource) ...
I have tried what I have attached, but not working.
protected void ImageListings_OnUpdating(object sender, SqlDataSourceCommandEventArgs e)
FileUpload FileToUpload = (lvImages.FindControl("ImageEditFile") as FileUpload);
e.Command.Parameters["@image"].Value = FileToUpload.FileName;