我使用 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"];
}
现在,我的网址如下所示:localhost/MyServices/MyPage.aspx?ActionID=215&token=8E4EB520-4E39-4127-B427-455C2549F019
但我想隐藏参数并得到这样的东西:localhost/MyServices/MyPage.aspx