从silverlight(OB)发送大字符串到没有查询字符串的asp.net [英] Send large string from silverlight(OB) to asp.net without query string

查看:115
本文介绍了从silverlight(OB)发送大字符串到没有查询字符串的asp.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Silverlight(浏览器模式之外)项目中工作。我已经使用WebBrowser(查询字符串)将数据从silverlight端发送到服务器端。但查询sting有容量问题。您知道查询字符串最大长度为2048(IE)。但我需要从客户端向服务器发送大量数据。现在我该怎么做才能从silverlight向asp.net主机发送大量数据(大于2048)。我不想.ashx。我想使用.aspx。谢谢

I am working in Silverlight(out of browser mode) project. I have sent data from silverlight end to server end by using WebBrowser(query string). But query sting has capacity problem. You know that query string max length is 2048(IE). But I need to send huge data from client to server. Now what should I do to send huge data(greater than 2048) from silverlight to asp.net host. I do not want to .ashx. I want to use .aspx. thanks

推荐答案

最好的办法是使用服务或调用javascript函数传递文本作为参数。这样你就可以从js上的aspx页面调用web方法。



从JavaScript调用Silverlight方法 [ ^ ]







http://www.mostlydevelopers.com/blog/post/2008/08/11/Call-Javascript-Method-from-Silverlight-and-Vice-Versa.aspx [ ^ ]
You best bet would be to either use a service or call a javascript function passing the text as an argument. That way you could then call a webmethod from the aspx page from js.

Calling Silverlight Method from JavaScript and JavaScript Function from Silverlight[^]

or

http://www.mostlydevelopers.com/blog/post/2008/08/11/Call-Javascript-Method-from-Silverlight-and-Vice-Versa.aspx[^]


这篇关于从silverlight(OB)发送大字符串到没有查询字符串的asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆