This is a migrated thread and some comments may be shown as answers.

User ASP.NET FileUpload control on the AdvancedForm

2 Answers 38 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Derek Feng
Top achievements
Rank 1
Derek Feng asked on 28 May 2010, 09:35 PM
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.

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 01 Jun 2010, 05:22 PM
Hello Derek,

There is a code library project - Upload in RadScheduler which you can review to check if your implementation is similar. I hope this helps.


Regards,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Derek Feng
Top achievements
Rank 1
answered on 15 Jun 2010, 04:43 PM
This really helps. Thank you very much.
Tags
Scheduler
Asked by
Derek Feng
Top achievements
Rank 1
Answers by
Peter
Telerik team
Derek Feng
Top achievements
Rank 1
Share this question
or