I have a question about customized the AdvacedForm with an ASP.Net FileUpload control.
I added the FileUpload control to the AdvancedForm so a user can upload file to the server when an appointment is created. When the Save button is clicked after selecting a file, everything seems going well since I do not see any errors. However, in my server-side code, for example, in handling UploadButton_OnClick event, I cannot catch any property of the FileUpload control. The control is posted back since I can access it by its ID, but the properties I am interested do have value. For example, FileName property is an empty string, the "HasFile" property returns a FALSE value. As such I cannot save the file or I do not have a file to save on post back.
Has this something to do with the fact that the AdvacedForm is an user control? I am asking this because when I have a FileUpload on the parent page with the Scheduler, I do not have any problem with catching the FileUpload control's properties.
I added the FileUpload control to the AdvancedForm so a user can upload file to the server when an appointment is created. When the Save button is clicked after selecting a file, everything seems going well since I do not see any errors. However, in my server-side code, for example, in handling UploadButton_OnClick event, I cannot catch any property of the FileUpload control. The control is posted back since I can access it by its ID, but the properties I am interested do have value. For example, FileName property is an empty string, the "HasFile" property returns a FALSE value. As such I cannot save the file or I do not have a file to save on post back.
Has this something to do with the fact that the AdvacedForm is an user control? I am asking this because when I have a FileUpload on the parent page with the Scheduler, I do not have any problem with catching the FileUpload control's properties.