Click here to Skip to main content
16,012,107 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Comments
R. Giskard Reventlov 29-Mar-11 6:52am    
Do you mean like an UpdatePanel?
Nitin Jenekar 29-Mar-11 6:58am    
Yes, its fine.
But i want to know the usability, performance and advantage over iframe.
You can suggest me some thing else too, if you know.
I can do further analysis, just only need a better path to investigate.

Thanks.
Raj Bose 29-Mar-11 11:54am    
U can make a table like iframe str in Masterpage ,
and put a ScriptManager there , and every page use update panel along with scriptmanager proxy . Hope this will help u.

1 solution

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


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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900