Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add exist html page in ContentPlaceHolder1

Status
Not open for further replies.

meravsha

Programmer
Jul 27, 2001
21
IL
Hi,
I create an aspx page that has a master page.
I want to display an exist html page inside the ContentPlaceHolder.
like we did in the OLD way with frams.

Can I do it?
 
Yes but that is not the purpose of master pages and iframes cause more problems than good.
With master pages, you create new pages from them and then customize the page accordingly.
 
I know it's not the purpose of master page.
but what can I do if my site need to contain an exist html page without copy it?
 
Hi

Option 1) <iframe> inside the ContentPlaceHolder
Option 2) look into WebClient and its method .DownloadString(), but be prepared to do some parsing/slicing of the retrieved content (to remove <html>, <head>, <body> tags)

[morning]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top