I need an asp.net usercontrol (without visual representation) that allow to open documents (like Word, Excel, Txt, etc) from website, edit in associated application, and then saved back directly to web.
It should work as you do when edit office documents stored in SharePoint, or in MS SkyDrive, through the web interface. If you don't know what I mean, let me know and I'll send you link to shared file on my skydrive so you can test and see what I mean.
Control should have a property, being either a reference to a filename stored somewhere on server, or a memory stream - suggestions are welcome
It should work as follows:
- on a asp.net webpage there should be link or button (refering to a filename). When user clicks it, the button / link should call a method on the usercontol like [url removed, login to view](), which will trigger pushing the file / memory stream to browser, to be opened in associated program. It should NOT trigger a regular download, which asks to save the file or open. Reason is, after editing, when user click Save in editor, the file must be saved right back to server. That also should will also be intercepted by the user control, which will receive the new file content (either as memory stream or file, whatever). The usercontrol then should fire an event, so the application will know the file was saved and it can do with it whathever is needed (save memory stream to file, to db, etc)
There is a NET library which already does this:
[url removed, login to view]
The only problem is this is not embeded into a easy reusable control, and this is what I need to be done.
You are not restricted to use this control / library - if you know other approach, you are welcome, as long as the desired behaviour is accomplished
To test, I need a simple web page with few links / buttons to few files and when user click them will trigger edit on client side, and then when user saves, the uc will fire Saved event and the web page will display something telling specific file was saved.
I prefer the file to be stored / linked to usercontrol as memorystream, since that will allow easy to either save it to file or to database. If you can do both ways and costs different, specify bid for memory stream and for file