msgen
msgen

Reputation: 1

Use header/footer written in php from a portal in a website written in asp.net mvc

How to integrate a web site written in asp.net mvc into a web portal written in php? I need to keep only the header/footer from php site. Both of them will have separate hosting and we want to keep the links (SEO) so the iframe is not a solution. Maybe a web service to get static HTML? Any ideas?

Upvotes: 0

Views: 82

Answers (2)

msgen
msgen

Reputation: 1

I fix it by processing the HTML code in ASP.NET and modify the desired section. I used HtmlAgilityPack to parse the HTML code.

Upvotes: 0

Darin Dimitrov
Darin Dimitrov

Reputation: 1039120

If you can't use an <iframe> another possibility would be to have the PHP site send an HTTP request to the ASP.NET MVC site, retrieve the HTML and include it into the response. But you might need to adapt your ASP.NET MVC site so that it no longer uses a Layout to avoid getting multiple heads and bodies into the resulting markup.

Upvotes: 1

Related Questions