I have a url and on entering this url, i am getting a html page. What i want is to save that html page on the server from that url. Here is the code-
protected void one_Click(object sender, EventArgs e)
{
string s = textbox.Text;
var code = s.Split(new[] { "mailerhtml" }, StringSplitOptions.None)[1];
string product = code.Replace(@"/", string.Empty);
}
In the above code i am entering a url and on one_Click of a button(one) i am saving the textbox text in a string 's'. Additionally, variable 'code' is used to get the name by which i will we saving the html page. for eg- if code is'abc', i will be saving it as code.html Now, i have a folder named 'HTMLPages' on my server and i want to save the html pages in this folder. How can i achieve this?