Is there server control that you load with HTML from a URL

N

n_o_s_p_a__m

I am wondering if there is a server control, something like a lieteral
control, that you can load its content (html) at runtime by specifying
a URL, so that the literal's text property is URL-loaded?

For example (something like):

string URL = "http://www.yahoo.com";
litMyDynamicHTML.text = LoadControlFromWebsite(URL);

Any methods to get this accomplished would be great.
 
B

Bruce Barker

use webclient to get the html. if the html include <img> tags, script or
stlylesheet include, you will have to translate these into a redirector of
your chosing.

-- bruce (sqlwork.com)
 
N

n_o_s_p_a__m

Had to go with Bruce's solution. It's exactly what I need. I can
populate a literal control with any site's html after downloading it.
Awesome.

Could you just go a bit further and illustrate how to "translate these
into a redirector"?

Much appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,434
Messages
2,571,690
Members
48,796
Latest member
Greg L.

Latest Threads

Top