Hi, I'm trying to grab or display certain parts of text from a websites source code from my web browser control on my form.
I've tryed displaying the whole source code into a textbox (a lot of lines) then trying to retrieve the text I need but with no luck.
The part of the source looks like this:
Code:
<!-- MAIN PAGE AREA -->
<div class="tripleColumn" id="contentGrid">
<div class="modCopy textContent">
<h1 class="petrol">Message Retention</h1>
<br />
<!-- MAIN PAGE AREA -->
<table border="1" bordercolor="#000000" cellspacing="0" cellpadding="1" width="375">
<tr>
<td align="left" valign="middle" width="75"><b>Time/Date:</b></td>
<td align="left" valign="middle" width="300">2010-01-03 18:55</Td>
</tr>
<tr>
<td align="left" valign="middle" width="75"><b>Message:</b></td>
<td align="left" valign="middle" width="300">70:Jan 3 18:55 MESSAGE IS HERE</Td>
</tr>
</table>
<br />
<table border="1" bordercolor="#000000" cellspacing="0" cellpadding="1" width="375">
<tr>
<td align="left" valign="middle" width="75"><b>Time/Date:</b></td>
<td align="left" valign="middle" width="300">2010-01-03 18:28</Td>
</tr>
<tr>
<td align="left" valign="middle" width="75"><b>Message:</b></td>
<td align="left" valign="middle" width="300">69:Jan 3 18:28 MESSAGE IS HERE</Td>
</tr>
</table>
<br />
</div>
</div>
I've included and colored part of the source code (only the part I want text from) which includes 2 messages with their relative information which i've coloured (there will be more than 2 messages, but look the same).
This is a pager service, displays messages from pager with the info i've provided, is there anyway to grab the text from the relative tags and repeat for each one. For example, this might work:
Code:
<td align="left" valign="middle" width="75">
to
that will grab all the time and date, if another way please share, thanks.
Is there a easier way?
Only reason is because if the text has changed (which i add it all to a textbox for the user to read) I can play a sound or notify in the textbox changed event.