Upload file in listview
Hi
I am trying to do something similar to this
FileUpload FileUpload1 = (FileUpload)ListView1.InsertItem.FindControl("File Upload1");
We learned this when we were uploading a path to our database with the insert item template.
My question would be how can we use something similar with an Edit item template? I was using the following code with the FileUpload and with the AsyncFileUpload control but it won't work.
AsyncFileUpload AsyncFileUpload1 = (AsyncFileUpload)ListView1.EditItem.FindControl("A syncFileUpload1");
It seems that is different with the edit template.
Please help me!!
Thank you.
|