문제

Is there any open source http tunneling software written in asp.net ? I know i can simply get http response and display it in an iframe, but this is not the result want. The links should be replaced, the styles of the page content should be set respectively. This needs lots of parsing and editing stuff. It would be great if there is an open source control or project that can do it for me. Unfortunately i couldn't find any on the web.

도움이 되었습니까?

해결책

If I understand correctly, you want to be able to display content from a different domain in an asp.net page without using IFRAMES? If that's so, I don't think that is possible today.

There is; however, a jQuery plugin that allows you load content from other websites using JSONP+YQL. Se here and here.

다른 팁

From your page's code behind, use the System.Net.WebClient to make a webrequest to the other site and then take the returned HTML and display it on your page.

Edit: If you don't want to manually fix all of the HTML yourself, take a look at the Application Request Routing module in IIS7. It can act like a proxy and pull in content from other domains.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top