I need a code to add a videofiles to videoplay :-
This is sample code : videoplay.aspx
codeBehind: videoplay.aspx.cs
protected void lnk_Click(object sender, EventArgs e)
{
FileUpload f = (FileUpload)this.FindControl("f1");
string apppath = Request.PhysicalApplicationPath;
f.SaveAs(apppath + "video\\" + f.FileName);
if (f.PostedFile == null || string.IsNullOrEmpty(f.PostedFile.FileName) || f.PostedFile.InputStream == null)
{
Label1.Text = "Please Upload Valid video file";
}
}
This code worked fine(just clicked the link thats all). but i need code for retrieve the saved videofiles and play in videoplay.(embedded code).
thanks
with regards - beginner programmer.
reply pls......