如何用Ajax替换asp.net网站中的iframe [英] How to replace iframe in asp.net web site with Ajax

查看:67
本文介绍了如何用Ajax替换asp.net网站中的iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我正在asp.net网站上使用iframe.
在选定的标签页中,页面已加载到iframe中.
这些标签在CSS中制作,并将链接传递到iframe.

我想用Ajax或其他替代方法代替它来优化站点.
因为处理这些非常困难.

请指教.

谢谢.

Hi Friends,

I am using iframe in my asp.net web site.
Pages are loaded in iframe on the selection of Tab.
These tabs are made in css and passes the link to iframe.

I want to replace this with Ajax or some other alternative to optimise the site.
Because handling of these is very difficult.

Please advise.

Thanks.

推荐答案

在ajax中进行操作会使它变得更加复杂,并且Iframe旨在获取页面并在一个隔离的框架中执行它.

Ajax将获取代码并将其插入到指定的块中.

最好的方法是将aspx页面更改为ascx控件,然后将iframe更改为面板和
Doing it in ajax will complicate it a bit more, and Iframe is designed to take a page and execute it in a isolated frame.

Ajax will take code and insert it into a specified block.

best way will be to change your aspx pages into ascx controls and then change your iframe into a panel and


使用ajax面板,然后在选项卡上单击将用户控件动态添加到面板/div.

另外,如果您要创建用于搜索引擎优化的商业网站,请注意,使用javascript/ajax并不是浏览希望提供给搜索引擎的内容的最佳方法,因为搜索引擎不会执行javascript.并使用url链接到javascript过渡,那么我还没有看到一个能够做到这一点的搜索引擎.


Use a ajax panel and on tab item click dynamically add the user control to the panel/div.

Also if you are creating a commercial website for search engine optimization note that using javascript/ajax is not the best way to navigate content you wish to make available to search engines because search engines don''t execute javascript. and linking to a javascript transition using urls , well i havent seen a single search engine capable of doing that.


这篇关于如何用Ajax替换asp.net网站中的iframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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