Welcome Guest Search | Active Topics | Sign In | Register

progress bar Options
Nan
Posted: Thursday, September 24, 2009 11:17:22 AM
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);
}
}
eo_support
Posted: Thursday, September 24, 2009 11:23:08 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
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!


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.