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

How to perform real postback in ajaxified usercontrol?

3 Answers 81 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
jan willem fransen
Top achievements
Rank 1
jan willem fransen asked on 09 Sep 2008, 02:03 PM
Hello,

We are using the exact scenario as described in this knowledge base article: http://www.telerik.com/support/kb/article/b454K-tgd-b454T-a.aspx using RadControls for ASP.NET AJAX Q2 2008.

Inside one of the UserControls, we have a RadUpload control. We also have a button that should perform the upload.

The button is not handled by the RadAjaxManager in the Page and also not handled in the RadAjaxManagerProxy in the UserControl. Yet it still does not perform a real postback so the upload will not work.

It looks like all the controls inside the UserControl are automatically ajaxified.

How can we get the upload control to work?

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 09 Sep 2008, 02:26 PM
Hello Jan,

Try to register your button as postback trigger on Page_Load:
ScriptManager.GetCurrent(Page).RegisterPostBackControl(buttonUpload); 

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
jan willem fransen
Top achievements
Rank 1
answered on 09 Sep 2008, 03:05 PM
Hello Daniel,

It doesn't seem to change anything. Request.Files (or UploadedFiles) is still empty. I still don't see the page being posted back. Any other options?
0
Daniel
Telerik team
answered on 12 Sep 2008, 04:01 PM
Hello Jan,

Please take a look at this demo and let us know if this fits your scenario.
Using RadUpload in an Ajaxified Grid

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
jan willem fransen
Top achievements
Rank 1
Answers by
Daniel
Telerik team
jan willem fransen
Top achievements
Rank 1
Share this question
or