|
Rank: Newbie Groups: Member
Joined: 9/23/2009 Posts: 4
|
Hi all
I am evaluating several different upload controls, looking for a simple to implement control that has a built-in progress bar (with or without AJAX). I would like to do a simple file upload and save using the eo:AJAXUploader. Do you have a sample of this, or a syntax guide that can show me how to upload and save a file while displaying the progress bar?
Thank you
Richard
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, Yes. You would download the product from our download page and install it if you have not already done so. Once you have installed it, you can go to Start -> All Programs -> EO.Web Controls xxx -> EO.Web for ASP.NET xxx -> Live Demo -> Live Demo Source Code xxxxx to open the live demo source project. You can then browse the source file of the demos or run it locally. You can also go to Start -> All Programs -> EO.Web Controls xxx -> EO.Web for ASP.NET xxx -> Documentation to access the product documentation. Expand "EO.Web AJAXUploader" and you should find more detailed information there. The same information is also available online at here: http://doc.essentialobjects.com/library/1/ajaxuploader/overview.aspxTo use our AJAXUploader is quite straight forward. If you use Visual Studio, you would need to: 1. Drag the uploader from your toolbox (installer would add it to your toolbox) to your form; 2. Set the uploader's TempFileLocation folder. This is where uploader stores temp files; 3. Handle the uploader's FileUploaded event. Inside that event you would access the uploader's PostedFiles property to get a list of uploaded files. You can then do whatever with them depending on your application logics; Hope this helps. Thanks
|
|
Rank: Newbie Groups: Member
Joined: 9/23/2009 Posts: 4
|
Hi There
Perhaps you can help me figure out why this is not produced a file in the expected location.
Protected Sub AJAXUploader1_FileUploaded(ByVal sender As Object, ByVal e As System.EventArgs) Dim file As EO.Web.AJAXPostedFile For Each file In AJAXUploader1.PostedFiles 'Get the temp file name Dim tempFileName As String = file.TempFileName 'Create the final file name based on the original file name Dim finalFileName As String = "c:\inetpub\gunk\images\myajaxuploaderfile.jpg" 'Move the file to the desired location System.IO.File.Move(tempFileName, finalFileName) Next file End Sub </script>
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <eo:AJAXUploader ID="AJAXUploader1" runat="server" AutoUpload="true" TempFileLocation="c:\temp" OnFileUploaded="AJAXUploader1_FileUploaded" > </eo:AJAXUploader> </div> </form>
</body> </html>
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, Try to set the uploader's AutoPostBack to true. Uploading a file is a two-stage process: first transferring the file to the temp directory, then post back the page to trigger your server side event (FileUploaded). The first step is where the file transfer (and progress bar) occurs, but the second step is where your server side event is triggered. If you set AutoPostBack to true, the the uploader would trigger the second step immediately after the first step is done. You can find more details here: http://doc.essentialobjects.com/library/1/ajaxuploader/ajaxuploader_behavior.aspxThanks!
|
|
Rank: Newbie Groups: Member
Joined: 9/23/2009 Posts: 4
|
Hi there
It works great. Now all I have to do is get rid of that checkbox and I am ready to test it. Where do I go to find out about pricing?
Thanks
Richard
|
|
Rank: Newbie Groups: Member
Joined: 9/23/2009 Posts: 4
|
Hi there
I got the template stuff happening. Pricing?
Thanks
Richard
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, You are quick. :) The price is $149/Developer for the uploader only and $299 for the whole suite. Deep volume discounts are available if you need more than one licenses. You can check the price/volume discount or purchase online directly at here: http://www.essentialobjects.com/Purchase.aspx?f=1Thanks!
|
|