Skip to main content
Home Forums Silverlight Programming Programming with .NET - General delete file created on server
4 replies. Latest Post by hazz on July 6, 2009.
(0)
hazz
Member
75 points
259 Posts
07-05-2009 10:27 AM |
as per http://tinyurl.com/mqspaf,
I need to delete, from Page.xaml.cs, the csv file just created.
I have many Silverlight projects/Reports/Pages which will each write a csv file to the same File Directory.
ken tucker
All-Star
16276 points
2,479 Posts
07-05-2009 12:30 PM |
I dont think it is a good idea to save the csv on the server it changes. I would write the csv to the response.outputstream on an aspx page
http://msdn.microsoft.com/en-us/library/system.web.httpresponse.outputstream.aspx
egoZd
326 points
125 Posts
07-06-2009 12:16 AM |
When you generate the file on server , you can save a tag on client side , and when you want to delete please send this tag as a request parameter , then server can understand which file to delete ,Does this you want.
07-06-2009 8:39 AM |
Thanks Ken. I like the idea of sending the file straight away instead of saving to server with associated problems that arise. (ie. deleting)
Do I
1. utilize an existing aspx page in the silverlight web project or
2. create a new one or
3. utilize the same .aspx page that hosts the .xap file itself.
Sorry for my need for a little more clarity.
Thanks,
07-06-2009 8:42 AM |
Thank you for the idea. How do I save a tag of the file on the client if it was created on the server?