|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Is there server control that you load with HTML from a URLI 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. 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. > I'd suggest you use an IFRame, as in this example:
http://www.dotnet2themax.com/ShowContent.aspx?ID=903bcdde-589f-4bd1-92b4-e565c8eab013 -- Show quoteHide quoteI hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net <n_o_s_p_a***@mail.com> wrote in message 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. > 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. >
Other interesting topics
Code-Behind Pain in the Behind!
Best way to disable a site? Authentication mode in web.config causing crash. Dynamically position custom control .ascx Message Box in ASP Options for generic full-text search without using database-specific full-text engine? Firefox Validation Issue - not the standard document.[all] problem! Dataview returns 0 rows Server.MapPath from a vb class Trying to wire up dropdownlist in datagrid |
|||||||||||||||||||||||