I have a gridview that shows an image as part of one of its columns. In edit mode, I want the user to be able to upload a new image file, so I use the FileUpload control in the template editing part.
I have an event to fix this, I believe:
protected void GridVew1_RowUpdated(object sender, GridViewUpdateEventArgs e)
{
if (FileUpload1.HasFile)
{
FileUpload1.SaveAs(Server.MapPath("images/hardware/" + FileUpload1.FileName));
}
}
I don’t know how to call the control correctly, how ... How is this functionality encoded?
source
share