vb.net How to get this inner text from webbrowser -


i m trying information webbrowser control textbox. tried this;

webbrowser1.document.getelementsbytagname("table") 

or tried this;

webbrowser1.document.all("table") 

but cant fin sollution. html cose this;

<form id="formarea" method="post">  <table id="infotable" cellspacing="0" cellpadding="0" border="0">         <tbody><tr>           <td class="td_sol">information 1</td>           <td class="td_sag">information 2</td>           <td class="td_sol">information 3</td>           <td class="td_sag">information 4: 123456</td>         </tr>         <tr>           <td class="td_sol">bla bla</td>           <td class="td_sag">bla bla</td>           <td class="td_sol">bla bla</td>           <td class="td_sag">bla bla</td>                   </tr>         <tr>           <td class="td_sol">bla bla</td>           <td class="td_sag">bla bla</td>           <td class="td_sol">bla bla</td>           <td class="td_sag">bla bla</td>         </tr>         <tr>           <td class="td_sol">bla bla</td>           <td class="td_sag">bla bla</td>           <td class="td_sol">bla bla</td>           <td class="td_sag">bla bla</td>         </tr>   </tbody></table> </form> 

i need "information 4: 123456"'s "123456" textbox.

i have second choice number. İn html tags(8 pieces) got number this;

<input type="hidden" name="impcustomer.customernum" value="123456"> 

or this(14 pieces);

<input type="hidden" name="hcustomernumber" value="123456"> 

can find way information? , maybe know how can find tag's number in table can textbox?

pls me. regards.

you html document string, using webbrowser.documenttext. use string.indexof find <td class="td_sag">information 4:. use string.substring extract value.


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -