开发者

combining pages at runtime

开发者 https://www.devze.com 2022-12-16 18:09 出处:网络
I am working on an asp.net page and I want to load the contents of another web page and place it in a panel.This is th开发者_C百科e kind of thing that you can do with curl, but I need a native c# solu

I am working on an asp.net page and I want to load the contents of another web page and place it in a panel. This is th开发者_C百科e kind of thing that you can do with curl, but I need a native c# solution.


If the HTML you are looking at is in your application, migrate it to a User Control and include that where you need access to the other HTML.

If it is from an external site that you don't control, I'd use an iFrame. How it looks depends more upon how the other sites data is formatted than yours.


You need a native HTML method, actually. How about loading the content into an iframe?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号