asp.net - C# and youtube video ID -


i have script here

<object width="830" height="495">     <param name="movie" value="http://www.youtube.com/v/videoidhere?fs=1&amp;hl=en_us&amp;rel=0&amp;autoplay=1">     <param name="allowfullscreen" value="true">     <param name="allowscriptaccess" value="always">     <embed src="http://www.youtube.com/v/videoidhere?fs=1&amp;hl=en_us&amp;rel=0&amp;autoplay=1" type="application/x-shockwave-flash"            allowscriptaccess="always"             allowfullscreen="true" width="830" height="495"> </object> 

and in code behind have videoid defined in sting called videoid

how replace videoidhere videoid have defined in code behind?

i using asp.net

provided have property (that has access modifier of protected or higher) named videoid, should do:

<embed src="http://www.youtube.com/v/<%= videoid %>?fs=1&amp;hl=en_us&amp;rel=0&amp;autoplay=1" ...> 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -