I want to access a FileUpload control in code-behind. Here is my code:
FileUpload file = (FileUpload)this.FindControl(“FleUpload”);
and the control is resided in a FormView. but “file” has a null value after I run the project.
what should I do to access the FileUpload control in the formview ?
help please
i tried this code :
and it worked.