如何在asp.net&amp ;;中进行跨域数据发送和接收php& JSP [英] How to do cross domain data sending and receving in asp.net & php & jsp

查看:85
本文介绍了如何在asp.net&amp ;;中进行跨域数据发送和接收php& JSP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告诉我深入了解跨域数据发送和接收应该做些什么--- [我在谷歌搜索很多然后知道我觉得这个专业人士可以通过JQUERY JSONP解决----- ------但我真的不知道如何做到这一点请告诉我。



我是初学者所以请举例说明

请在回答之前请Remenber。





1.我是否必须激活或停用两台或一台服务器上的任何其他设置?



2.两个域都可以在任何服务器上创建(asp.net.php,jsp等)......





谢谢,希望我能尽快得到答复---------



感谢提前

Please tell me somebody in deep what should i have to do for cross domain data sending and receving ---[i search alot on google then know bit that i think this pro can be solve via JQUERY JSONP ----------- But i dont know in really how to do this please tell me.

I am begginer so tell me with example
And Please Remenber before answering this.


1. Do i have to activate or deactivate anyd additional setting on both or one server ?

2. both domain can be create on any sever(asp.net.php,jsp etc)......


Thanks and hope i will get answered soon ---------

THANKS In Advance

推荐答案

请检查以下链接



Asp.Net中跨域之间的通信 [ ^ ]
Please check following link

Communication between cross domain in Asp.Net[^]


我已经解决了这个问题。我可以使用HTML CORS。它最好是jquery json。



Jquery json有限制只能获取类型数据可以使用jquery发送或接收。但是当你使用HTML CORS时,它真棒。数据大小无关紧要,您可以发送或接收包含大量数据的帖子类型变量。
i have solved this question my self. I can use HTML CORS. it is best than jquery json.

Jquery json have limit only get type data can be send or receive using jquery. But when you us HTML CORS it is awesome. Data size is not matter you can send or receive post type variable with a large amount of data.


它可能对您有所帮助

http://www.code-sample.com/2013/11/ajax-json -cross-domain-call-to-rest.html [ ^ ]
It might help you
http://www.code-sample.com/2013/11/ajax-json-cross-domain-call-to-rest.html[^]


这篇关于如何在asp.net&amp ;;中进行跨域数据发送和接收php& JSP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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