Using Object tags in asp.net
<p>I have this html code for embedding a video in an aspx page:</p>

<pre><code>    &lt;OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="190" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject"&gt;
&lt;PARAM NAME="FileName" VALUE="videofilename.wmv"&gt;
&lt;PARAM name="autostart" VALUE="false"&gt;
&lt;PARAM name="ShowControls" VALUE="true"&gt;
&lt;param name="ShowStatusBar" value="false"&gt;
&lt;PARAM name="ShowDisplay" VALUE="false"&gt;
&lt;EMBED TYPE="application/x-mplayer2" SRC="videofilename.wmv" NAME="MediaPlayer"
WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"&gt; &lt;/EMBED&gt;
&lt;/OBJECT&gt;
</code></pre>

<p>The thing is, I want to set its parameters from my C# code-behind (f.e., the path to the file to be played). </p>

<p>I know I should add <code>runat="server"</code> but that's not the only thing.  The code-behind doesn't recognize any element of the type MediaPlayer no matter what.  (I'm trying to access it from my <code>Page_Load(..)</code>)</p>

<p>How should I do this?</p>

<p>10x</p>
