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&hl=en_us&rel=0&autoplay=1"> <param name="allowfullscreen" value="true"> <param name="allowscriptaccess" value="always"> <embed src="http://www.youtube.com/v/videoidhere?fs=1&hl=en_us&rel=0&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&hl=en_us&rel=0&autoplay=1" ...>
Comments
Post a Comment