Hi,
plz give me a small example how can i am save the file in the project folder by using radupload control through coding in c#.
I have already using
Default.aspx
Default.aspx.cs
But always
Please help me asps.
Thanks
plz give me a small example how can i am save the file in the project folder by using radupload control through coding in c#.
I have already using
Default.aspx
<telerik:RadUpload ID="imageUpload" runat="server" ControlObjectsVisibility="None" MultipleFileSelection="Disabled" AllowedFileExtensions=".jpg,.jpeg,.png,.gif" TargetFolder="~/Record/"> </telerik:RadUpload>if (imageUpload.UploadedFiles.Count>0) { // Guid guid = new Guid(); string filename = Guid.NewGuid().ToString() +imageUpload.UploadedFiles[0].GetExtension(); testimonial.FileName = filename; testimonial.FileUrl = "~/Record/" + filename; filename = Server.MapPath("~/Record/" + filename); imageUpload.UploadedFiles[0].SaveAs(filename); testimonial.FilePhysicalPath = filename; }imageUpload.UploadedFiles.Count property show 0 file upload .Please help me asps.
Thanks