Categories
Mastering Development

How can I use C# to save a webpage as a text file [closed]

i want this page http://www.tsetmc.com/Loader.aspx?ParTree=151311&i=40611478183231802 save to string in c# i try webbrowser but webbrowser cant show page HttpClient httpclient = new HttpClient(); var result = httpclient.GetStringAsync(new Uri(" http://www.tsetmc.com/Loader.aspx?ParTree=151311&i=40611478183231802")).ToString(); File.WriteAllText("abc.html", result);