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.
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.
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)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.