Hack Forums
[.NET] Recover a HTML in form [VB.NET] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Recover a HTML in form [VB.NET] (/showthread.php?tid=4655868)



Recover a HTML in form [VB.NET] - Kulls - Jan 26, 2015

Hello,

How to recover a html page in a form visual basic.
I code in Visual Basic Express 2010.
Regards,
Kulls


* - iSynthesis - Jan 26, 2015

PHP Code

<?php 
Textbox1
.text = new WebClient().DownloadString("Link") 

^ Short way, i recommend using webrequests, but it depends on what you're trying to do.


* - Odus - Jan 26, 2015

(Jan 26, 2015 09:59 AM)iSynthesis Wrote:  
PHP Code

<?php 
Textbox1
.text = new WebClient().DownloadString("Link") 

^ Short way, i recommend using webrequests, but it depends on what you're trying to do.

Meh, WebClient'll do just fine for downloading a page. Should dispose of it though.


* - $lick - Jan 26, 2015

(Jan 26, 2015 10:07 AM)Odus Wrote:  Meh, WebClient'll do just fine for downloading a page. Should dispose of it though.

Use "Using"

E.g.
Code
Using OPsAFag As New WebClient
    textbox1.text = OPsAFag.DownloadString("Link")
End Using