I'm creating and saving an xml file using the following code:
File.WriteAllText("D:\\55_SEPA_30-04-2017.xml", strXMLGenerate);
The problem is that the created file saving on server folder not in local drive. How can I save the file anywhere on local drive path. Is there any way to save the file automatically in local "Download" folder? Any help will be highly appreciated.
Edit: I'm using File.WriteAllText for creating and saving file for an Ajax call. In a Ajax calling/ static method the Response.Write/ Response.End() is not supported. So my question is nowhere duplicate with the mentioned question. Please take a look on it.
Thanks