[英]Access asp.net web page from web site in web application using jQuery
I have created new web application it's contains the index.aspx. 我创建了新的Web应用程序,其中包含index.aspx。 another one web site is available. 另一个网站可用。 i have added the web application reference into web site. 我已将Web应用程序引用添加到网站中。 now i want to access the index.aspx in web site using jquery ajax call . 现在我想使用jquery ajax call访问网站中的index.aspx。 is it possible to access the same. 是否可以访问相同的文件。 thanks in advance all helps are appreciated. 在此先感谢所有帮助。
thanks 谢谢
Wood 木
I'm not sure this is exactly what you're asking but if you just want to call your index.aspx page using jQuery from another website's page you simply do this: 我不确定这是否正是您要的内容,但是如果您只是想使用另一个网站页面上的jQuery来调用index.aspx页面,则只需执行以下操作:
$.get("http://www.mydomain.com/index.aspx", function(data){
alert("Data Loaded: " + data);
// do something with markup returned from your index.aspx
});
Hope this helps. 希望这可以帮助。 You may try to clarify your question if this doesn't answer it. 如果无法解决问题,您可以尝试澄清您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.