Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / November 2006

Tip: Looking for answers? Try searching our database.

load external html vs 2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff Allan - 30 Nov 2006 03:36 GMT
Hello,

I am trying to load an external HTML page into a DIV tag with .NET 05 and I
can't figure it out.  Any suggestions?

My Scenario:
- Gridview populated with list of available files
- I can get the external page to load in a new window just fine
- I would like the detail to show on the same page, below the list.
- I can't use the detail control and dynamically create the page as these
pages are compiled and stored on the server for archive purposes.
Kodali Ranganadh - 30 Nov 2006 07:11 GMT
Hi .. Try with Ajax XMLHTTP Request Browser activeX object for filling
the HTML page into the div tag.
Example :

<script language="javascript" type="text/javascript">

var xmlHttp;
function Button1_onclick() {
if(window.ActiveXObject)
       {
       xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
       }
       else if(Window.XmlHttpRequest)
       {
       xmlHttp=new XMLHttpRequest();
       }
       xmlHttp.open("GET","http://www.itoncorp.com",true);
       xmlHttp.onreadystatechange=doUpdate;
       xmlHttp.send();
}
function doUpdate()
   {
     var t= document.getElementById("divid");
     if (xmlHttp.readyState==4) {
     t.innerHTML=xmlHttp.responseText;
     }
   }

</Script>

The above script get the www.itoncorp.com html page using the ajax and
then fill this page into the div named "divid". Iw works good.
But the main desedvantage to use this method's is, it just replace the
InnerHTML with the itoncorp.com HTML page, But it does't get the fill
the images and other resources

U can use IFrames .. this also act's like a webBrowser.. May be it will
be sutable for get native view for the webpage u requested..

all the best ..

> Hello,
>
[quoted text clipped - 7 lines]
> - I can't use the detail control and dynamically create the page as these
> pages are compiled and stored on the server for archive purposes.
Jeff Allan - 30 Nov 2006 23:24 GMT
Hello Kodali,
Thanks for your response, I will give this a try!
Jeff

> Hi .. Try with Ajax XMLHTTP Request Browser activeX object for filling
> the HTML page into the div tag.
[quoted text clipped - 49 lines]
>> - I can't use the detail control and dynamically create the page as these
>> pages are compiled and stored on the server for archive purposes.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.