I have asp.net web application in which I am trying to show a youtube video. I have stored youtube url in database.
I am using a repeater control as I wanna show multiple videos at a time.
But, when page loads, it doesn't load video. After right clicking on page it shows 'Movie not loaded...'
How to resolve this?
Following is the code I am using.
Expand|Select|Wrap|Line Numbers
- <asp:Repeater runat="server" ID="rptrVideos">
- <ItemTemplate>
- <table>
- <tr>
- <td>
- <object width='640' height='385'>
- <param name='allowFullScreen' value='true'></param>
- <param name='allowscriptaccess' value='always'></param>
- <embed src='<%# Eval("VideoUrl")%>' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='139' height='190'>
- </embed>
- </object>
- </td>
- </tr>
- </table>
- </ItemTemplate>
- </asp:Repeater>
Thanks in advance.