POST 集合类型数据从 silverlight 到 aspx 页面。
我在将数据从 silverlight 发布到同一域中的 aspx 页面时遇到问题。 我需要在新选项卡中打开 aspx 页面,该页面需要组合类型(id、金额)的数据,例如
3-XX-YY-ZZ, 12
4-XX-YY-ZZ, 20
5-XX-YY-ZZ, 15
等等...[很多]
并对其进行处理并显示。
我尝试使用查询字符串和 HtmlPage.PopupWindow() 来完成此操作。它可以工作,但会受到大小限制。 请帮忙。
I have a problem posting the data from silverlight to the aspx page which is in same domain.
I need to open aspx page in a new tab that needs data of type combination (id, amount) like
3-XX-YY-ZZ, 12
4-XX-YY-ZZ, 20
5-XX-YY-ZZ, 15
etc...[many]
and process it and display.
I tried to do it using querystrings and HtmlPage.PopupWindow(). It works but that would come with size limits.
Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您需要使用 WebClient api 执行 HTTP post。这将帮助您像网页一样发布数据。
这是一个链接,我发现这可能有助于详细说明后续步骤...
http://viswaug.wordpress.com/2009/09/17/making-a-http-post-in-silverlight-aka-thread-hopping/
华泰
I think you need to do a HTTP post with WebClient api. This would help you to post data as a web page will do it.
Here is a link which I found this might be helpful to elaborate next steps...
http://viswaug.wordpress.com/2009/09/17/making-a-http-post-in-silverlight-a-k-a-thread-hopping/
HTH
我可以从 silverlight 应用程序访问 javascript。通过使用silverlight的javascript函数将隐藏字段数据发布到aspx页面来解决这个问题。
I can access javascript from silverlight application. And this problem was solved by using javascript function from silverlight to post the hidden field data to aspx page.