Hi there,
The problem with this is not the PhotoAlbum, but the way the web works. It's pretty easy to write some code that loops through a folder, detects images and inserts them into the database. However, having this code fired at a regular interval from an ASP.NET web application can be more problematic.
You may want to Google for the terms:
scheduled task asp.net
There are a couple of ways to accomplish this including scheduling a task to fire an application, using Windows Services (with a
FileSystemWatcher), do it "on demand" whenever a request is made and so on. With pure ASP.NET, I don't think you'll be able to create anything that looks like a real-time file watcher.
You can take a look at this to get you started with the Services:
http://msdn.microsoft.com/msdnmag/is...lingASPNETCode
HtH,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.