Hello
I am trying to embed YouTube video inbto my ASP.net page using a multiview.
I want to query a SQL database to pick which embed code to use
The source looks like this
<asp:View ID="View5" runat="server">
<object type="application/x-shockwave-flash"
data=" width=800 height=650><param name="movie"
value=" /><param name="FlashVars"
value="playerMode=embedded" /></object>
</asp:View>
This works fine, but I want each user to login and have their own YouTube player. I want to pull what is between the object tags from SQL and have it displayed
How can I change the object tag at runtime based on SQL?
So something like
Bob logs in
<object> Bobs YouTube embed code </object
Joe logs in
<object> Joes YouTube embed code </object
Is there a way to do this in the DataBinding event of the view?
Thanks in advance
Dave
I am trying to embed YouTube video inbto my ASP.net page using a multiview.
I want to query a SQL database to pick which embed code to use
The source looks like this
<asp:View ID="View5" runat="server">
<object type="application/x-shockwave-flash"
data=" width=800 height=650><param name="movie"
value=" /><param name="FlashVars"
value="playerMode=embedded" /></object>
</asp:View>
This works fine, but I want each user to login and have their own YouTube player. I want to pull what is between the object tags from SQL and have it displayed
How can I change the object tag at runtime based on SQL?
So something like
Bob logs in
<object> Bobs YouTube embed code </object
Joe logs in
<object> Joes YouTube embed code </object
Is there a way to do this in the DataBinding event of the view?
Thanks in advance
Dave