How to create a file from a local computer directly onto a web server?
I tried but got this error:
URI format not supported.
My code is:
string path = Server.MapPath("~/App_Data/");
string path = "http://www.domainname.com/App_Data/";
string jsondata = new JavaScriptSerializer().Serialize(enquirydet);
System.IO.File.WriteAllText(path + "enq.json", jsondata);
Any way how I can do that?