Silverlight 5隐藏了initParams

时间:2013-08-12 19:26:47

标签: html5 web-services silverlight hidden

我使用HTML将Silverlight添加到网页中,一切正常。但我想在URl中隐藏我的initParameters

这,如何查看我的页面:

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="silverlightApp" width="100%" height="99%" style="min-height:600px; min-width:980px">
      <param name="source" value="ClientBin/My.xap?<%= URLTag  %>"/>
      <param name="onError" value="onSilverlightError" />
      <param name="background" value="white" />
        <param name="EnableGPUAcceleration" value="true" />
        <param name="maxframerate" value="20" />
        <param name="minRuntimeVersion" value="5.0.61118.0" />
        <param  name="autoUpgrade" value="true" />
        <param name="onSourceDownloadProgressChanged" value="onSourceDownloadProgressChanged" />
        <param name="initParams"  value="ActionID=215&token=8E4EB520-4E39-4127-B427-455C2549F019&email=hello@gmail.com" />
      <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=5.0.61118.0" style="text-decoration:none">
          <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
      </a>
    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe>





protected override void OnStartup(object sender, StartupEventArgs e) {
            base.OnStartup(sender, e);
            ActionID = e.InitParams["ActionID"];
            Token = e.InitParams["token"];
}

现在,我的网址看起来像这样: 本地主机/ MyServices / MyPage.aspx ActionID = 215安培;标记= 8E4EB520-4E39-4127-B427-455C2549F019

但我想隐藏参数并得到这样的东西: 本地主机/ MyServices / MyPage.aspx

1 个答案:

答案 0 :(得分:0)

您可以从Web服务/ WCF RIA服务获取其他参数。