Silverlight - Xaml 和 asp.net 页面之间跳转及参数传递
时间:2010-09-17 来源:小寒
1 Xaml ---> asp.net
xaml:
HtmlWindow html = HtmlPage.Window;
html.Navigate(new Uri(String.Format("/WordPage.aspx?username={0}&email={1}", "xxxxx", "[email protected]"), UriKind.Relative));
asp.net
Response.Write(Request.QueryString["username"]);
Response.Write(Request.QueryString["email"]);
2 asp.net ---> xaml
asp.net
Response.Redirect(String.Format("SBTOSNewTestPage.aspx?username={0}&email={1}", "xxxx", "[email protected]"));
xaml
IDictionary<String, String> paras = HtmlPage.Document.QueryString;
this.textBlock1.Text = paras["username"];
this.textBlock1.Text += paras["email"];
相关阅读 更多 +