My concept is about stegnography. I want to play the video file and keep the download option. If the client clicks the download button, the video along with registration message should download.
I used the following code
in .cs
DirectoryInfo dir = new DirectoryInfo(MapPath("~/Video"));
FileInfo[] files = dir.GetFiles();
ArrayList listItems = new ArrayList();
foreach (FileInfo info in files)
{
listItems.Add(info);
}
DataList1.DataSource = listItems;
DataList1.DataBind();
in design
Font-Names="Verdana" Font-Size="Small" RepeatColumns="3" RepeatDirection="Horizontal"
Width="600px" ForeColor="#333333">
<ItemTemplate>
<br />
<b>Song Name:</b>
<asp:Label ID="lblCName" runat="server" Text='<%# Bind("name") %>'></asp:Label>
<br />
<video controls="controls" width="200" height="200" src='<%# Eval ("name","Video/{0}") %>'></video>
<br />
<b>Download:</b>
<asp:LinkButton ID="LinkButton1" runat="server" Text='<%#Eval("name") %>'></asp:LinkButton>
here download option is not working, can any 1 give some idea for this plz.