Click here to Skip to main content
15,921,577 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to show google page in div using C#, asp.net
Posted

You can't show Google page in div or iFrame etc...

They don't want you to display their page in your Application.
 
Share this answer
 
Nope. You can't embed a complete HTML document inside another div element as this is a block level element and W3C has defined what could be included inside it.

But there is a workaround. Follow these steps:

1. Get the document using ajax (jQuery rocks, use that)
2. Extract the content of the <body> element and put it inside your div element
3. Get all links and script of <head> element and append them to the <head> element of your existing page.
 
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