title: Adding Object or changing its parameter programmatically in C# / ASP.Net
body: <p>I want to embed Windows Media Player into my ASP.NET page. I do it with this code, which works fine:  </p>
  
  <pre><code>&lt;OBJECT id='mediaPlayer1' width="180" height="50" 
  classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' 
  codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
  standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'&gt;
  &lt;param name='fileName' value="http.."&gt;
  &lt;param name='animationatStart' value='true'&gt;
  &lt;param name='transparentatStart' value='true'&gt;
  &lt;param name='autoStart' value="false"&gt;
  &lt;param name='showControls' value="true"&gt;
  &lt;param name ="ShowAudioControls"value="true"&gt;
  &lt;param name="ShowStatusBar" value="true"&gt;
  &lt;param name='loop' value="false"&gt;
  &lt;EMBED type='application/x-mplayer2'
  pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
  id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1' 
  bgcolor='darkblue' showcontrols="true" showtracker='-1' 
  showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="420" height="380"
  src="http..."    
  autostart="true" designtimesp='5311' loop="false"&gt;
  &lt;/EMBED&gt;
  &lt;/OBJECT&gt;
  </code></pre>
  
  <p>My problem is, that I want to change the url in my code behind, (like <a href="http://forums.asp.net/t/1082119.aspx/1" rel="nofollow">here</a> but it is in VB, not C#) because I load the Urls out of a database. So is there a way, where I can add this code in my c# part or -even better- to access the url from the c# part? </p>
  
  <p>Sorry if this is a stupid question, but I searched for hours now.. and this.FindControl(mediaPlayer1); doesnt work.</p>