有没有一种方法可以删除iframe或框架并使用其他方法? [英] Is there a way that I can remove iframe or frame and use other method?
问题描述
大家好,
有没有一种方法可以删除iframe或框架并使用其他方法,但效果与iframe和frame相同?
我正在使用ASP.NET,有一个母版页,其余页是asp页.母版页具有ContentPlaceHolder控件,因此我希望用户不要加载每个页面(整个页面= Master.master + child.aspx),而只需要刷新内容.例如,如果用户单击主页",帮助"或注销"链接,则仅需更改内容,而不必加载整个页面.
谢谢
Hallo everyone,
Is there a way that I can remove iframe or frame and use other method but have the same effect as both iframe and frame have?
I am using ASP.NET, there is a master page and the remaining pages are asp pages. The master page has a ContentPlaceHolder control, so I wish a user not to load every page (the entire page = Master.master + child.aspx), rather only the content has to be refreshed. For instance, if the user clicks on Home, or Help, or Logout links, only the content has to be changed not the entire page has to be loaded.
Thanks
推荐答案
然后您需要向AJAX投降.使用AJAX,您可以将aspx页面加载到特定的div.
Then you need to surrender to AJAX. Using AJAX you can load your aspx page to particular div.
.获取(' Page.aspx',函数(响应){
.get('Page.aspx', function(response){
(' #dialog').html(response);
('#dialog').html(response);
这篇关于有没有一种方法可以删除iframe或框架并使用其他方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!