| Rank: Newbie Groups: Member
 
 Joined: 9/24/2009
 Posts: 1
 
 | 
		    I have installed the eo and I can see it my VS. How do i need to integrate the progress bar control within my code. Here is my code:
 ASPX page:
 
 <tr>
 <td>
 File :
 </td>
 <td>
 <asp:FileUpload ID="FileUpload1" runat="server" />only video
 </td>
 </tr>
 <tr>
 <td align="center" colspan="2">
 <br />
 <asp:Button ID="Button1" runat="server" Text="Save" OnClick="save_Command" />
 <hr />
 <eo:ProgressBar ID="ProgressBar1" runat="server" Width="250px" BorderStyle="None" ShowPercentage="True" RepeatIndicatorImage="True" StartTaskButton="Button1">
 </eo:ProgressBar>
 </td>
 </tr>
 
 .CS file:
 
 protected void save_Command(object sender, EventArgs e)
 {
 if (FileUpload1.HasFile)
 {
 string ext = Path.GetExtension(FileUpload1.FileName).ToLower();
 if (ext == ".flv")
 {
 
 string filename = DateTime.Now.ToString("yyyyMMddHHmmssfff");
 string filepath = "ArtistVideos/" + filename + ext;
 
 FileUpload1.SaveAs(Server.MapPath("~/" + filepath));
 
 filename = filepath;
 string user = "Admin";
 
 int segmentvalue = Convert.ToInt32(dd_segment_type.SelectedValue);
 db.InsertVideo(user, tb_title.Text, filename, dd_type.SelectedValue, segmentvalue);
 CommonFunctions.JavaScriptAlertMessage("Your file has been successfully uploaded!", this.Page);
 
 
 tb_title.Text = "";
 dd_type.SelectedIndex = -1;
 dd_segment_type.SelectedIndex = -1;
 // CreatePlaylist();
 }
 else
 CommonFunctions.JavaScriptAlertMessage("Only flv files allowed!", this.Page);
 }
 }
 | 
	| Rank: Administration Groups: Administration
 
 Joined: 5/27/2007
 Posts: 24,425
 
 | 
		    Hi,
 You will need to purchase a license for the uploader. The uploader control is exactly for that purpose. The ProgressBar control is free but we do not offer tech support for it.
 
 Thanks!
 |