473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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.

Nov 19 '05 #1
4 911
Why don't you use iframe?

Ibrahim ULUDAG
www.ibrahimuludag.com
<n_**********@mail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.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.

Nov 19 '05 #2
I'd suggest you use an IFRame, as in this example:
http://www.dotnet2themax.com/ShowCon...4-e565c8eab013

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
<n_**********@mail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.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.

Nov 19 '05 #3
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_**********@mail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.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.

Nov 19 '05 #4
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.

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: KathyB | last post by:
If someone could just explain this to me...I just don't get it! I have an aspx page where I retrieve several session variables and use xmlDocument to transform xml file with xsl file into an...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
2
by: Mr Wizard | last post by:
I am going through the front controller http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/ImpFrontControllerInASP.asp and all works well except when the server.transfer...
8
by: Mike Fellows | last post by:
Ok, im not sure if this is at all possible and if it is how i go about it is beyond me i have a piece of client side code that requires a piece of data from the server side (an ID number in this...
4
by: Glenn M | last post by:
I have a shared XML file on a server . i also have one xslt file that performs a simple transform on in to view the data. now i want to have another page that lets users modify the shared xml...
20
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
4
by: Lee Chapman | last post by:
Hi, Can anyone tell me why in the code below, the call to ClearChildViewState() has no effect? To paraphrase the code: I'm using view state. I have a textbox and a submit button (and a label...
22
by: Mr Newbie | last post by:
I was thinking about developing a workflow application yesterday and was musing over the different approaches than one could take in restricting specific actions on a ticket( Form ) at any said...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.