Hi All!
today i've tried the RadUpload control with the following code and do nothing after postback:
aspx:
- the UploadedFiles collection empty and i've selected the proper file, size and image format (jpg image)
- no masterpage, no additional code, web.config configured for RadUpload
thx,
alsi
today i've tried the RadUpload control with the following code and do nothing after postback:
aspx:
<form id="form1" runat="server"> |
<div> |
<asp:ScriptManager runat="server" ID="scrManager" /> |
<telerik:RadUpload ID="RadUpload1" runat="server" AllowedFileExtensions=".jpg,.gif" |
EnableEmbeddedSkins="False" MaxFileSize="1000000" TargetFolder="~/MyFiles"> |
</telerik:RadUpload> |
<br /> |
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /> |
<br /> |
</div> |
</form> |
public partial class Tests_FileUpload : System.Web.UI.Page |
{ |
protected void Page_Load(object sender, EventArgs e) |
{ |
} |
protected void Button1_Click(object sender, EventArgs e) |
{ |
if (RadUpload1.UploadedFiles.Count > 0) |
{ |
foreach (UploadedFile f in RadUpload1.UploadedFiles) |
{ |
string s = f.FileName; |
} |
} |
} |
} |
- the UploadedFiles collection empty and i've selected the proper file, size and image format (jpg image)
- no masterpage, no additional code, web.config configured for RadUpload
thx,
alsi