Include page - not a user control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a web page that will have a header. This page will be used by many
clients each who will want their own custom header. My web page is hosted on
my server. Each client has their own server.

So I thought that it would be beneficial to our clients if they created
their own custom header on their site and I could include that page at the
top of my site. This way they can update as they wish.

I tried using a web request to get the html from the header hosted on their
site but the html did not contain an absolute link to their images, style
sheets, etc. So the page did not render correctly. Does anyone have any
ideas how I can import a page not on my site into a web page?
 
You would need to do something like using the WebClient class (or
HttpWebRequest/Response) to get their "file" and add it to a Placeholder
control on the page.
Peter
 
you have two options.

1) parse the html for relative urls, and update to contain the sitename
2) use a frame/iframe to host the title.

-- bruce (sqlwork.com)
 
Back
Top