The fact that it is inside Edit Item Template means you are editing so the most likely place is at Row Updating which is the final destination before the grid commits the changes to the database. To get the instance of the control you can hook up to the Grid View’s Row Updating event.
Before you can use the Save As method you need to get the instance of the File Upload control for the row you are editing.
Another useful column type is the Template Field, which allows for a mix of HTML markup, Web controls, and data-binding syntax. NET 1.x Data Grid, Template Fields are akin to the Data Grid's Template Column.) One common use of a Template Field is to perform custom logic to massage the output; another common use is to embed other Web controls within a Grid View column. For example, the Employees table in the Northwind database contains a field called Hire Date.
The Northwind database's Employees table participates in a one-to-many relationship with the Terroritories table—each employee is assigned an arbitrary number of territories. This returns a Data View containing the data encapsulated by the Sql Data Source control. NET page's declarative syntax to see the details for the territories Data Source Sql Data Source.) The Row Data Bound event handler is fired for each row, including non-Data Rows, such as the Header and Footer.A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source. Suelen darse los escenarios en donde se necesite editar distintas entidades pero haciendo uso de un único control gridview.A Post Back events wipes out the Data Table and the Grid View's datasource.The only way to maintain this data is to either save it in a Session variable or re-read it from the SQL database.
Find Control("File Upload File Attachment"), File Upload) If f File Attachment. To create a parameter that will be used by your Update Command, you can add the parameter to the data-source’s Update Parameters collection. Default Value = old End If End Sub Hope this helps...