Home All Groups Group Topic Archive Search About

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

Author
10 Jun 2005 6:49 PM
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.

Author
10 Jun 2005 7:10 PM
Ibrahim ULUDAG
Why don't you use iframe?

Ibrahim ULUDAG
www.ibrahimuludag.com


<n_o_s_p_a***@mail.com> wrote in message
Show quoteHide quote
news:1118429376.267436.11630@f14g2000cwb.googlegroups.com...
>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.
>
Are all your drivers up to date? click for free checkup

Author
10 Jun 2005 7:43 PM
Steve C. Orr [MVP, MCSD]
I'd suggest you use an IFRame, as in this example:
http://www.dotnet2themax.com/ShowContent.aspx?ID=903bcdde-589f-4bd1-92b4-e565c8eab013

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


<n_o_s_p_a***@mail.com> wrote in message
Show quoteHide quote
news:1118429376.267436.11630@f14g2000cwb.googlegroups.com...
>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.
>
Author
10 Jun 2005 8:02 PM
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_o_s_p_a***@mail.com> wrote in message
Show quoteHide quote
news:1118429376.267436.11630@f14g2000cwb.googlegroups.com...
>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.
>
Author
10 Jun 2005 8:37 PM
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.

Bookmark and Share