Silverlight 4 ObservableCollection to show changing files on a web server


i writing application requires files uploaded silverlight client folder on server running on localhost. files deleted after passed onto ftp server. overcome lack of access ftp silverlight in browser , not wish run out of browser either. wpf not option either using data forms heavily. i using ashx on server side , silverlight webclient file streams and ftpwebrequest handle last leg. delete files once on ftp server. works well.

i looking example or advice allow silverlight 4 client monitor deletion from/creation in of files in server folder , show results in bound list box or other collection control user informed on client files have reached ftp location. observablecollection seem way go. how client notified if file has disappeared folder on server? any ideas welcome. thanks.

hi,

i looking example or advice allow silverlight 4 client monitor deletion from/creation in of files in server folder , show results in bound list box or other collection control user informed on client files have reached ftp location.

according description ,i suggest check links below samples describe how create silverlight server file manager.

silverlight server file manager

silverlight file manager

but how client notified if file has disappeared folder on server?

base on understanding ,i recommend can use dispatchertimer retrieve collections of files on server side @ specified interval of time , @ specified priority.

you can refer links below how use dispatchertimer.

http://pagebrooks.com/archive/2008/03/07/silverlight-2-has-a-timer-dispatchertimer.aspx

http://msdn.microsoft.com/en-us/library/system.windows.threading.dispatchertimer(vs.95).aspx#y1436

hope can you.



Silverlight  >  MVVM / ViewModel Pattern with Silverlight



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'