Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello to everyone, I'm trying to save the content of an url using C#, or better explained, trying to implement the functionality "Save As" of any navigator, save the webpage in a html file, and a folder containing all the files and images, or save it to mht, is there any way to make this using .net framework, or any library or component that allow me?, thanks...
Posted

What about some googling first?
Look, what's on the first page: Convert any URL to a MHTML archive using native .NET code[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-Nov-14 14:04pm    
5ed.
—SA
CodeProject is your friend: "Convert any URL to a MHTML archive using native .NET code" [^]. This is an old article (2005), based on Google's MHTBuilder, but it's by Jeff Atwood, himself, co-founder of StackOverFlow.


More recently, there is the HTMLAgilityPack which many people found useful for getting whatever out of web-page; a C# library, updated Sept. 2014, is on NuGet: [^].

There's a CodeProject article on using HTMLAgilityPack with ASP.NET: [^].
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-Nov-14 14:04pm    
5ed.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900