EDN Admin
Well-known member
i want to extract some textual data from a HTML page programatically. I am using vb.net 2008 webbrowser controls to programatically capturing that data. The HTML code of the webpage is given below
<pre class="prettyprint <div id="main-div
<div id="top_header
<div style="height: 85px;
<div style="float: left; width: 400px; height: 80px; <img src="cc/elance.png" width="318" height="80 1
<div style="float: left;
<div class="trebuchet-23 <img src="images/logo.png
<div style="height: 20px; padding-left: 315px;
<div class="arial-12-left Sitemap
<div class="arial-12-left -
<div class="arial-12-left Location
<div id="menu-div
<div id="menu-left
<div id="menu-middle
<div id="menu-inside
<div id="menu-ov / Home
<div class="menu-line
<div id="menu-bt abut.php About Us
<div class="menu-line
<div id="menu-bt dflogin.html Member Login
<div class="menu-line
<div id="menu-bt co.php Contractors
<div class="menu-line
<div id="menu-bt cont.php Contact
<div id="search-bg
<div id="menu-right
<div style="margin-bottom: 20px; <img src="images/banner.jpg" width="890" height="336
<div id="inside-div
<div id="about-div
<div id="about-left
<div id="about-middle
<div class="heading-div
<div class="white-20 Welcom To
<div class="red-20 <img src="cc/elance.png" width="398" height="81
<div class="myriad-22
<div style="height: 220px;
<div style="float: left; margin-right: 10px;
<font color="#ffffff" size="+2 Assignment Report</font><br><font color="#ffffff Assignment No.1</font><br><font color="#ffffff Total Posts 341</font><br><hr<span style="text-decoration:underline <span style="font-style:italic <span style="font-weight:bold > <span style="text-decoration:underline <span style="font-style:italic <span style="font-weight:bold <span style="text-decoration:underline <font color="#ffffff Pin Code = HF5O6</font><br><font color="#ffffff TITLE = Xbox 360 with 20GB HDD + 2 wireless controllers + 8 Games + Wireless Headset + Guitar in Eastry</font><br><font color="#ffffff DATE = 09/08/2012</font><br><font color="#ffffff Tracking Key = 85265E712050-15152226115354753 <span style="text-decoration:underline </font><br> <form name="form1" method="post" action="/dflogin.php <input name="txtId" value="E712050-15" type="hidden <input name="txtassId" value="1" type="hidden <input name="txtPsw" value="HH29" type="hidden <input name="txtLog" value="0" type="hidden < <font color="#ffffff *Please copy tracking key exact as it is. We track your report through this key.</font><br><h6 align="right <input name="btnSub" value="Next" style="background-color: rgb(0, 153, 0); color: rgb(255, 255, 255);" type="SUBMIT </h6></form>
<div style="float: left;
<div class="Tre-13-gray" style="width: 280px;
<div class="bt-read2
<div id="about-right
<div id="footer-div
<div id="footer-left
<div id="footer-middle
<!--<div style="float:left; padding-top:35px; margin-right:15px;
<div class="white-20 Contact
<div class="red-20 us
-->
<div style="float: left; padding-top: 15px;
<div style="height: 30px;
<!--<div class="Tre-13-red2" style="width:120px; Mailing address:
<div class="Tre-13-gray2" style="width:400px; admin@eoprojects.com -->
<!-- <div class="Tre-13-gray3 General Pricing and Service information:<br />
<div class="Tre-13-red2" style="width:255px; General Operations Director/ Sales:
<div class="Tre-13-gray2" style="width:300px; eoprojects.com -->
<div style="float: left; padding-left: 312px;
<div style="height: 69px; width: 90px;
<div style="float: left; padding-top: 20px; padding-right: 15px; <img src="images/icon_f.png" width="34" height="35
<div style="float: left; padding-top: 20px; <img src="images/icon_t.png" width="34" height="35
<div class="arial-11 © 2010 All Copyrights Reserved
<div id="footer-right 1
[/code]
I have underline that line which i want to extract from the following code. Can any one plz tell me what code i should write to extract that ??? Thank u in advance<br/>
View the full article
<pre class="prettyprint <div id="main-div
<div id="top_header
<div style="height: 85px;
<div style="float: left; width: 400px; height: 80px; <img src="cc/elance.png" width="318" height="80 1
<div style="float: left;
<div class="trebuchet-23 <img src="images/logo.png
<div style="height: 20px; padding-left: 315px;
<div class="arial-12-left Sitemap
<div class="arial-12-left -
<div class="arial-12-left Location
<div id="menu-div
<div id="menu-left
<div id="menu-middle
<div id="menu-inside
<div id="menu-ov / Home
<div class="menu-line
<div id="menu-bt abut.php About Us
<div class="menu-line
<div id="menu-bt dflogin.html Member Login
<div class="menu-line
<div id="menu-bt co.php Contractors
<div class="menu-line
<div id="menu-bt cont.php Contact
<div id="search-bg
<div id="menu-right
<div style="margin-bottom: 20px; <img src="images/banner.jpg" width="890" height="336
<div id="inside-div
<div id="about-div
<div id="about-left
<div id="about-middle
<div class="heading-div
<div class="white-20 Welcom To
<div class="red-20 <img src="cc/elance.png" width="398" height="81
<div class="myriad-22
<div style="height: 220px;
<div style="float: left; margin-right: 10px;
<font color="#ffffff" size="+2 Assignment Report</font><br><font color="#ffffff Assignment No.1</font><br><font color="#ffffff Total Posts 341</font><br><hr<span style="text-decoration:underline <span style="font-style:italic <span style="font-weight:bold > <span style="text-decoration:underline <span style="font-style:italic <span style="font-weight:bold <span style="text-decoration:underline <font color="#ffffff Pin Code = HF5O6</font><br><font color="#ffffff TITLE = Xbox 360 with 20GB HDD + 2 wireless controllers + 8 Games + Wireless Headset + Guitar in Eastry</font><br><font color="#ffffff DATE = 09/08/2012</font><br><font color="#ffffff Tracking Key = 85265E712050-15152226115354753 <span style="text-decoration:underline </font><br> <form name="form1" method="post" action="/dflogin.php <input name="txtId" value="E712050-15" type="hidden <input name="txtassId" value="1" type="hidden <input name="txtPsw" value="HH29" type="hidden <input name="txtLog" value="0" type="hidden < <font color="#ffffff *Please copy tracking key exact as it is. We track your report through this key.</font><br><h6 align="right <input name="btnSub" value="Next" style="background-color: rgb(0, 153, 0); color: rgb(255, 255, 255);" type="SUBMIT </h6></form>
<div style="float: left;
<div class="Tre-13-gray" style="width: 280px;
<div class="bt-read2
<div id="about-right
<div id="footer-div
<div id="footer-left
<div id="footer-middle
<!--<div style="float:left; padding-top:35px; margin-right:15px;
<div class="white-20 Contact
<div class="red-20 us
-->
<div style="float: left; padding-top: 15px;
<div style="height: 30px;
<!--<div class="Tre-13-red2" style="width:120px; Mailing address:
<div class="Tre-13-gray2" style="width:400px; admin@eoprojects.com -->
<!-- <div class="Tre-13-gray3 General Pricing and Service information:<br />
<div class="Tre-13-red2" style="width:255px; General Operations Director/ Sales:
<div class="Tre-13-gray2" style="width:300px; eoprojects.com -->
<div style="float: left; padding-left: 312px;
<div style="height: 69px; width: 90px;
<div style="float: left; padding-top: 20px; padding-right: 15px; <img src="images/icon_f.png" width="34" height="35
<div style="float: left; padding-top: 20px; <img src="images/icon_t.png" width="34" height="35
<div class="arial-11 © 2010 All Copyrights Reserved
<div id="footer-right 1
[/code]
I have underline that line which i want to extract from the following code. Can any one plz tell me what code i should write to extract that ??? Thank u in advance<br/>
View the full article