J'ai une application web pour le téléchargement de vidéos, Dans ce que je veux montrer la vidéo dans le lien click.i a écrit une fonction pour afficher la vidéo.je veux passer l'ID de la vidéo dans la fonction .Comment puis-je faire cela? Quelqu'un peut-il m'aider?passer l'ID sur un lien cliquez sur
C'est mon code
Private Function
GetSpecificVideo(ByVal i As Object) As
DataTable
'pass the id of the video
Dim connectionString As String =
ConfigurationManager.ConnectionStrings("UploadConnectionString")
.ConnectionString
Dim adapter As New SqlDataAdapter("SELECT FileName,
FileID,FilePath " + "FROM FileM WHERE
FileID = @FileID", connectionString)
adapter.SelectCommand.Parameters.Add("@FileID",
SqlDbType.Int).Value = DirectCast(i, Integer)
Dim table As New DataTable()
adapter.Fill(table)
Return table
End Function
Protected Sub ButtonShowVideo_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles ButtonShowVideo.Click
Repeater1.DataSource = GetSpecificVideo(****here i want to get the ID****)
'the video id (2 is example)
Repeater1.DataBind()
End Sub
S'il vous plaît html et utilisez-vous aussi un simple lien hypertexte ou '
TheVillageIdiot