In general i want that every 5 minutes my application will upload a text to my website. So if the current page in my website is empty after uploading the text i will see on the page the text.
This is my example website:
http://rhodan.wix.com/chocolade#!blank/c1236
Empty page.
This is the code I'm trying to use to upload the text to the site:
private void SaveTToWeb()
{
try
{
WebClient client = new WebClient();
string myFile = @"C:\Temp\file.txt";
client.Credentials = CredentialCache.DefaultCredentials;
client.UploadFile(@"http://rhodan.wix.com/chocolade#!blank/c1236", "PUT", myFile);
client.Dispose();
}
catch (Exception err)
{
MessageBox.Show(err.Message);
}
}
I don't get any exceptions or errors but i don't see the text in the text file on my page.