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

RadUpload does NOT work in UserControls

2 Answers 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
reza
Top achievements
Rank 1
reza asked on 01 Feb 2012, 11:36 AM
Hi
please consider this simple UserControl :
ASCX :
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="WebUserControl" %>
<telerik:RadUpload ID="up" runat="server"></telerik:RadUpload>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />

C# :
    protected void Button1_Click(object sender, EventArgs e)
    {
        int c = up.UploadedFiles.Count;
        int i = up.InvalidFiles.Count;
    }
I always get 0 for both UploadedFiles , and InvalidFiles 
it seems this problem is in UserControls !!
have I done anything wrong
if no , can I fix the problem

Thank you for your feedback

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 01 Feb 2012, 12:15 PM
Hello,

I have tried to reproduce the issue but no avail. If you have enabled ajax, then disable the AJAX functionality as explained in the following documentation.
Uploading Files with AJAX

Hope it helps.
Thanks,
Princy.
0
reza
Top achievements
Rank 1
answered on 01 Feb 2012, 12:41 PM
Hi
Yes you are right
Thank you very much
Tags
General Discussions
Asked by
reza
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
reza
Top achievements
Rank 1
Share this question
or