I am currently using xml as a config file for my silverlight application.
I have no problem reading the file, but now that I also require to update the file through web(preferably silverlight as will show preview of font colors, size etc), the only method I thought of is to generate the whole file and overwrite the existing through uploading.
Is there an easier way to do so?
Well, found my own answer, sharing here too.
When I read the xml file, I’m using linq’s for xml.
So there is an option for doc.save()
So by doing this:
I have got a saved xml file in ss.
Then using web client’s OpenWriteCompleted,I used
Using web client’s OpenWriteAsync, the URI will be the uri of my generic handler.
Inside the generic handler
credit to the author ( Nipun Tomar) @ as most of the ideas came from his site
http://www.c-sharpcorner.com/UploadFile/nipuntomar/FileUploadsilverlight03182009030537AM/FileUploadsilverlight.aspx