473,405 Members | 2,338 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,405 software developers and data experts.

Remote Webpage data extraction

HI,
i have a question abt dot net. Let me tell you the sceneraio...i have a
asp.net page written in C#. there is a textbox and a button in the page thatz
it. the functionality i want is that whatever the URL i enter into that
textbox, my code should read that webpage and show that within my page. i
dont want to redirect the user to that page. instead of that when he hits the
submit in the backend my C# code should read that remote webpage and extract
the data and insert into my own page. if i didnt got the images that will do.
but i should all the text data.
Anybody have any idea how to do this. I cant use any third party component

Thanks in advance

Deepson
--
Deepson Thomas
Jul 21 '05 #1
2 1365
Deepson,

The trouble with what you are doing is that HTML is a descriptionlanguage
which makes it possible to get text from a lot of resources. So what you see
on a page does not have to be on that page. It can be an url that uses an
url that uses an url.

As well there can be a lot of text in javascript and/including macromedia
pluggins, java pluggins or other pluggins.

That makes it in my opinion very difficult to do what you want.

Probably is some client side script that creates an Iframe in your page a
more proper way to go.

However in this just my thought,

Cor

"Deepson Thomas" <De***********@discussions.microsoft.com>
HI,
i have a question abt dot net. Let me tell you the sceneraio...i have a
asp.net page written in C#. there is a textbox and a button in the page
thatz
it. the functionality i want is that whatever the URL i enter into that
textbox, my code should read that webpage and show that within my page. i
dont want to redirect the user to that page. instead of that when he hits
the
submit in the backend my C# code should read that remote webpage and
extract
the data and insert into my own page. if i didnt got the images that will
do.
but i should all the text data.
Anybody have any idea how to do this. I cant use any third party component

Thanks in advance

Deepson
--
Deepson Thomas

Jul 21 '05 #2
Deepson Thomas wrote:
HI,
i have a question abt dot net. Let me tell you the sceneraio...i
have a asp.net page written in C#. there is a textbox and a button in
the page thatz it. the functionality i want is that whatever the URL
i enter into that textbox, my code should read that webpage and show
that within my page. i dont want to redirect the user to that page.
instead of that when he hits the submit in the backend my C# code
should read that remote webpage and extract the data and insert into
my own page. if i didnt got the images that will do. but i should all
the text data.
Anybody have any idea how to do this. I cant use any third party
component


You can fetch web pages using either System.Net.WebClient or
System.Net.WebRequest, but this will only work if the page doesn't use
client-side scripting to render itself fully or partially.

Cheers,

--
Joerg Jooss
www.joergjooss.de
ne**@joergjooss.de
Jul 21 '05 #3

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

Similar topics

14
by: jj | last post by:
Is it possible to call a remote php script from within Access? I'm thinking something like: DoCMD... http://www.domain.com/scripts/dataquery.php DoCmd.OpenQuery "update_data", acNormal, acEdit...
2
by: Jason Huang | last post by:
Hi, Would someone show me how to do the data extraction to Excel in ASP.Net using C# web form? I am not familiar with VB, so I am asking someone to help me out! Any help will be appreciated. ...
1
by: Jim Bayers | last post by:
Our network nazi doesn't want us running a webserver on the server that has a connection to the campus database so we created a remote object that runs as a windows service. The windows service...
2
by: Deepson Thomas | last post by:
HI, i have a question abt dot net. Let me tell you the sceneraio...i have a asp.net page written in C#. there is a textbox and a button in the page thatz it. the functionality i want is that...
4
by: russzee | last post by:
Hi, I want to populate my client's webpage (Remote Server) automatically through my Server and Database by having him just paste a javascript on his webpage. I have read up about Microsoft...
2
by: Martin | last post by:
Hi all. I have a fully functional page hosted on my PC that uses PHP and connects to MySQL on my PC to generate it's code. I now have some web hosting available which includes both PHP and...
2
by: soren625 | last post by:
I have searched this (and other) groups extensively, in addition to the clj FAQ and the Web, and (to my surprise) this question doesn't come up as often as I thought it would. Maybe this is because...
1
by: Bell Deep | last post by:
I wanted to create a webpage(using HTML), where I want to display the contents of a remote folder (the folder is in the server). I need to display the contents (i.e, files or subfolders) of that...
3
by: =?GB2312?B?zPC5zw==?= | last post by:
Howdy, all, I want to use python to detect the accessibility of website. Currently, I use urllib to obtain the remote webpage, and see whether it fails. But the problem is that the webpage may be...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.