Welcome Guest Search | Active Topics | Sign In | Register

Examples and Primer on Upload Control Options
richard
Posted: Wednesday, September 23, 2009 3:01:26 PM
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
eo_support
Posted: Wednesday, September 23, 2009 3:12:00 PM
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.aspx

To 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
richard
Posted: Wednesday, September 23, 2009 7:30:00 PM
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>
eo_support
Posted: Wednesday, September 23, 2009 7:44:50 PM
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.aspx

Thanks!
richard
Posted: Wednesday, September 23, 2009 8:31:43 PM
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
richard
Posted: Wednesday, September 23, 2009 8:35:39 PM
Rank: Newbie
Groups: Member

Joined: 9/23/2009
Posts: 4
Hi there

I got the template stuff happening. Pricing?

Thanks

Richard
eo_support
Posted: Wednesday, September 23, 2009 8:40:10 PM
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=1

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.