ASP.NET做GIS 处理复杂而且效果不好 考虑到用户体验和开发效率采用ASP.NET+silverlight开发 地图显示部分用silverlight

涉及到ASP.NET和Silverlight通信的问题 

1 Xaml ---> asp.net

xaml:

HtmlWindow html = HtmlPage.Window;
html.Navigate(new Uri(String.Format("/WordPage.aspx?username={0}&email={1}", "xxxxx", "xxx@microsoft.com"), 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", "xxxxx@microsoft.com"));

xaml

IDictionary<String, String> paras = HtmlPage.Document.QueryString;
this.textBlock1.Text = paras["username"];
this.textBlock1.Text += paras["email"];

 

 

 

1 Xaml ---> asp.net

xaml:

HtmlWindow html = HtmlPage.Window;
html.Navigate(new Uri(String.Format("/WordPage.aspx?username={0}&email={1}", "xxxxx", "xxx@microsoft.com"), 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", "xxxxx@microsoft.com"));

xaml

IDictionary<String, String> paras = HtmlPage.Document.QueryString;
this.textBlock1.Text = paras["username"];
this.textBlock1.Text += paras["email"];

 

 

 

相关文章:

  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-15
  • 2021-11-04
  • 2021-10-25
  • 2021-12-04
  • 2022-01-28
  • 2021-05-18
相关资源
相似解决方案