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

Problems when upload File in Usercontrol

1 Answer 65 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Ngoc
Top achievements
Rank 1
Ngoc asked on 25 Jun 2011, 03:03 PM
Hello everybody,

Please help me :(
I build a page with TabStrip, TabStrip has MultiPages, each page is added user control(The control is add inside code in file .cs of page with function RadMultiPage1_PageViewCreated).
In one TabPage, I import a Radupload RadUpload1 to upload files to server, and a Button btnUpload for submitting Upload File. After selecting File, clicking Button, the first thing which is done is function RadMultiPage1_PageViewCreated called again to reload all usercontrol, and then the function btnUpload_Click is called. But now, the RadUpload1 is reset, so, RadUpload1.UploadedFiles is null, all Files which I selected before are not catched in my code, not to uploaded to server.

Please give me some solutions for this problem, men.

Thanks very much for your help.

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 29 Jun 2011, 02:51 PM
Hello Ngoc,

Please find attached a sample project which works at our side. Make sure that before the button submit no postback occurs.

Kind regards,
Peter Filipov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Upload (Obsolete)
Asked by
Ngoc
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or