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

c# - parse web page to get data

is there a way to parse a web page in c# .NET and get specific data that is getting displayed on the page in some textbox

can anybody provide a sample code if possible..
Oct 21 '06 #1
2 19509
Hi,

I have the same kind of problem, However you may find some way to this here http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1315354&SiteID=1

Regards,
Apr 1 '07 #2
Here is something that would help you out:

http://www.mycsharpcorner.com//Post.aspx?postID=15

You can download the code to the GetStringInBetwewn utility and you will find it very helpfull to get the data you need from the web page source:

Say you want to get the name between the <a> </a> tags in an html that looks like this:

<a>The Scripts</a>

It basically works like this:

string source="<a>The Scripts</a>"
string[] result=GetStringInBetween("<a>", </a>, source);
Console.WriteLine(result[0]);

There is another usefull utility: RemoveStringBetween, you can download the code for it at:

http://www.mycsharpcorner.com//Post.aspx?postID=17

Hope this helps.
Apr 1 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Andrew Stanton | last post by:
Hello, Currently our business has to enter the service tag in the following url: http://support.euro.dell.com/uk/en/ECare/Form/SCSIndex.asp each time we need to chek the status of a support...
6
by: nate | last post by:
Hello, Does anyone know where I can find an ASP server side script written in JavaScript to parse text fields from a form method='POST' using enctype='multipart/form-data'? I'd also like it to...
0
by: neil | last post by:
For integration with a credit card processing gateway i need to be able to capture a small XML formatted string passed back to my page from the processing company. It is sent back to the same...
1
by: fredda054 | last post by:
Hi everybody ! With help from some nice people here I'm getting close to solve my problem with dbnull values in a repeater. I got it pretty much done, I just ned to fix some syntax. I get a...
13
by: DH | last post by:
Hi, I'm trying to strip the html and other useless junk from a html page.. Id like to create something like an automated text editor, where it takes the keywords from a txt file and removes them...
7
by: Perks | last post by:
Hi. I am trying to find out if it is possible to open a pdf file from within PHP, and parse its contents in order to extract all form fieldnames that might have been previously setup within the...
2
by: Samuel R. Neff | last post by:
I'm using a quasi open-source project and am running into an exception in double.Parse which is effectively this: double.Parse(double.MinValue.ToString()) System.OverflowException: Value was...
5
by: jonathan184 | last post by:
how to parse data to an html page from XML file checking a DTD file I have a XML file and a DTD file. How could i parse this using either php or perl or another language you recommend.
11
by: JRough | last post by:
I'm trying to use output buffering to cheat so i can print to excel which is called later than this header(). header("Content-type: application/xmsdownload"); header("Content-Disposition:...
2
by: semomaniz | last post by:
I have a page set where i get data in following format 41128°°8/20/2007 12:00:00 AM°11:00°True These data are stored in an arraylist name d. Then i use following code to split the data ...
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: 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
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.