Skip to content

Using ASP LinkButton Control how to play video ? Help

Deepak Ratan

Deepak Ratan

Asked Apr 16, 2015, 3:09 AM EDT1 answer
Share
LinkedInX
 
YouTube_WebForm.aspx
 
            
                        
                                 
                                       
                                                
                                       
                                 
                     
         
                     
 
 
 
YouTube_WebForm.aspx.cs 
 
C#
       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)

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.