How do I access this control in the Grid View_Row Updating event in order to save the uploaded file to the file system? Thanks I have applied this method for using the File Upload but when the code behind runs the . You can use the Row Index property to get the row you are editing from the Grid View’s Rows collection.
Page //default1Dear Karthicks Thank you very much for pointing it out..
' I am marking this also as answer,,let other less understanding guys like me benefit..
I am using the row Updating method as described in the blog, but the exception forces my code to stop the code in visual studio (like you would at a break point) and displays the message.
Once I click play again, the code carries on and the program continues.
When you have the instance of the Gird View’s row, you can use the Find Control method to locate the File Upload control. Find Control("new File"), File Upload) Dim old File As label = CType(Noticias.