来自javascript的aspx页面调用 [英] aspx page call from javascripts

查看:91
本文介绍了来自javascript的aspx页面调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友...
如何从javascript调用aspx页面..如果有人知道该方法,请给我打电话以解决我的问题..

在此先感谢...

hi friends...
how to call aspx page from javascript.. if anybody know the method please tel me to solve my problem..

thanks in advance...

推荐答案

window.location = ''mypage.aspx''

我怀疑这是您的意思,所以为什么不澄清您要完成的工作.
window.location = ''mypage.aspx''

I doubt this is what you mean so why don''t you clarify what you are trying to accomplish.


基本上,您想使用JavaScript向另一个页面发出Web请求(大概是在远程服务器上)? 这篇文章涵盖了这一点.本质上,由于权限问题,您不能直接从JavaScript获取远程服务器的内容.取而代之的是,您将必须使用某些插件技术(例如Flash)或回叫服务器以使其执行网络请求,然后将HTML返回给客户端.如果要使用JavaScript进行此操作,则可以使用页面方法使用JavaScript从客户端调用服务器.
Basically, you want to use JavaScript to make a web request to another page (presumably on a remote server)? This post covers that. Essentially, you can''t get the content of a remote server directly from the JavaScript because of permission issues. Instead, you''ll have to use some plugin technology (e.g., Flash) or call back to your server to have it perform the web request and then return the HTML back to your client. If you want to do that using JavaScript, you can use Page Methods to call your server from the client using JavaScript.


这篇关于来自javascript的aspx页面调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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