Sunday, May 23, 2010

How do I run a browser, such as IE, within a web page?

I%26#039;m writing an ASP.NET 1.1 application and want the users to be able to browse a specified website from within my application page and not go off surfing the net!, my bosses requirements!.



How do I run a browser, such as IE, within a web page?





If you are writing an .ASP application, I think you are already using a browser to view it. Include a frame which references the required URL. You can%26#039;t run a %26#039;browser within a browser%26#039; as such but you can include a page from another website within a frame (this is how Google%26#039;s Image Search works when you select one of the links and there are many websites which use frames as a way of showing different information in a consistent format.) One problem you may encounter, however, is that not all browsers support frames.



How do I run a browser, such as IE, within a web page?



you could copy the pages from the website into an editor program like frontpage and save the file as an html document, then incorporate that into the application, that way they will be accessing the pages within the application and not through the internet. This could also be done by storing the website as an offline file onto the server, then they would be able to open IE and %26quot;surf%26quot; the page but not actually be online.



Other Replys:I would open the page in a frame, or in a new window. If they%26#039;re already in a browser window though, surely trying to browse the net in a frame or window (or even an embedded browser like you suggest) would be a lot more hassle than simply navigating the original browser elsewhere?



The only good solution I can think of is write your own browser and limit the pages that can be viewed in it, or set up your sever security to only allow certain sites to be viewed. Either that or trust your staff a little.



Rawlyn.



Other Replys:From what you wrote do you want the Broswer within the webpage itsefl? If so then you will have to use a completely different technology such as Citrix.



Citrix is a remote computing application that will allow you to do what you described, an example of this is Microsoft have put there new MS Office package within a vitual desktop OS for you to try out the new versions of word, explorerer, excel etc



As i said from reading what you wrote this is what i thought you wanted to do, so hope it helps in some way.

No comments:

Post a Comment

Blog Archive