简体   繁体   English

使用jQuery从Web应用程序中的网站访问asp.net网页

[英]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.

相关问题 ASP.NET网站中的JQuery插件 - JQuery Plugin in ASP.NET Web Site 使用 jquery ajax 从 asp.net web 表单页面调用 web api url - Call web api url using jquery ajax from an asp.net web form page 在ASP.NET Web应用程序中使用jQuery表替换GridView? - Replacing GridView using jQuery table in asp.net web application? ASP.NET网页(WebMatrix)发布的jQuery帖子 - jQuery post from ASP.NET web page (WebMatrix) 如何在ASP.NET Web应用程序中使用Jquery Ajax使用Web服务 - how to consuming web service using jquery ajax in asp.net web application 在asp.net mvc应用程序中显示远程网站页面的缩略图 - Present a thumbnail image of a remote web site page in an asp.net mvc application 在asp.net中使用json网络服务从ms sql表获取数据并在jquery datatable中显示在已发布的Intranet网站上不起作用 - fetching from ms sql table using json web servics in asp.net and display in jquery datatable not working on published intranet site Asp.net Web应用程序中的HTML页面模板 - Html Page Template in Asp.net Web Application 将jQuery集成到现有的ASP.NET Web应用程序中? - Integrating jQuery into an existing ASP.NET Web Application? ASP.Net Web应用程序Jquery Photoviewer和Ajaxical Update - ASP.Net web application Jquery Photoviewer and Ajaxical Update
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM