TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Deepak Ratan
NA
175
50.3k
Using ASP LinkButton Control how to play video ? Help
Apr 16 2015 7:09 AM
I have a ASP LinkButton Control and I was wondering how to play a video in same page behind when it is clicked,video stored in DB,How to do?
YouTube_WebForm.aspx
<asp:ListView ID="Listviewid" Visible="true" runat="server" AutoGenerateColumns="false" RepeatColumns="1" CellSpacing="15">
<ItemTemplate>
<table>
<tr>
<td>
<asp:LinkButton ID="LinkID" runat="server" Text="Play" CommandArgument='<%# Eval("
ID
", "Generic_Handler.ashx?Id={0}")%>' OnClick="LinkID_Click"></asp:LinkButton>
</td>
</tr>
</table>
</ItemTemplate>
</asp:ListView>
<a class="player" id="
aPlayer
" runat="server" visible="false" style="height: 300px; width: 300px; display: block;"></a>
YouTube_WebForm.aspx.cs
protected void LinkID_Click(object sender, EventArgs e)
{
LinkButton linkplayvideo = sender as LinkButton;
this.
aPlayer
.Visible = true;
this.
aPlayer
.HRef = linkplayvideo.CommandArgument;
}
Database
ID varchar(MAX)
--->
"In this ID column should save the FileName and Uploaded DateTime"
FileType varchar(50)
,
Video varbinary(MAX)
Reply
Answers (
1
)
Crystal report
Bind Dropdown list from Database and show in GridView