title: Silverlight Webpart Custom Initialization Parameters in Sharepoint 2010
body: <p>I have a xap file which accepts custom parameters.I have tested it in a HTML page.It works.</p>
  
  <pre><code>"&lt;div id="silverlightControlHost"&gt;
      &lt;object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"&gt;
        &lt;param name="source" value="SmoothStreamingPlayer.xap"/&gt;
        &lt;param name="onError" value="onSilverlightError" /&gt;
        &lt;param name="background" value="white" /&gt;
        &lt;param name="minRuntimeVersion" value="4.0.50401.0" /&gt;
        &lt;param name="autoUpgrade" value="true" /&gt;
        &lt;param name="InitParams" value="selectedcaptionstream=textstream_eng,mediaurl=http://ie1adtvmvrb1s:12345/LiveSmoothVideo.isml/manifest" /&gt;
              &lt;/object&gt;&lt;iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"&gt;&lt;/iframe&gt;&lt;/div&gt;"
  </code></pre>
  
  <hr>
  
  <p>Here I am passing Intialization parameters like this</p>
  
  <p>selectedcaptionstream=textstream_eng,mediaurl=http://ie1adtvmvrb1s:12345/LiveSmoothVideo.isml/manifest</p>
  
  <p>I am trying to place the same intialization parameters in Silverlight Webpart in Sharepoint 2010. But It didn't load the Xap filele to.I am not able to figure out what is going wrong </p>