•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 397,592 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,867 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 3673 | Replies: 3
![]() |
•
•
Join Date: Jan 2007
Location: Japan
Posts: 70
Reputation:
Rep Power: 2
Solved Threads: 4
have you tried using the WebClient class to stream the html from the URL?
I am not a VB guy but in C# looks like this:
I am not a VB guy but in C# looks like this:
System.Net.WebClient client = null;
try
{
client = new System.Net.WebClient();
client.Encoding = Encoding.UTF8;
client.Headers = new System.Net.WebHeaderCollection();
client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2;)");
string html = client.DownloadString(txtDomain.Text + url);
AddPageToDB(txtDomain.Text + url, html);
}
catch {//error handling code here}
finally
{
client.Dispose();
} sedgey: so little daylight, too much caffeine
MCSD MCAD MCSE
http://www.thefriendlybuilder.co.uk,
http://www.sheetmusicdirect.com
MCSD MCAD MCSE
http://www.thefriendlybuilder.co.uk,
http://www.sheetmusicdirect.com
•
•
Join Date: Jan 2007
Location: Japan
Posts: 70
Reputation:
Rep Power: 2
Solved Threads: 4
This does code translation from C# to VB and vice versa:
http://www.carlosag.net/Tools/CodeTr...r/Default.aspx
http://www.carlosag.net/Tools/CodeTr...r/Default.aspx
sedgey: so little daylight, too much caffeine
MCSD MCAD MCSE
http://www.thefriendlybuilder.co.uk,
http://www.sheetmusicdirect.com
MCSD MCAD MCSE
http://www.thefriendlybuilder.co.uk,
http://www.sheetmusicdirect.com
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
.net .net framework 3.0 access ajax asp code combo css custom data developer development div dom dreamweaver dropdownlist feed firefox google checkout google checkout vat html html api javascript microsoft module msdn net news office reader reuse skin software sql symantec tables theme vista w3c weather web windows workflow wysiwyg xml xoap
- create html file from rss feed (PHP)
- Can JMenuItem point to a HTML file that opens in IE? (Java)
- How to display a HTML file (in browser window) from Java Program...? (Java)
- Won't save a doc - file permission denied (OS X)
Other Threads in the ASP.NET Forum
- Previous Thread: How to Control the Length of a multiline text box
- Next Thread: Issue with Javascript embedded in C#


Linear Mode