Welcome to the VisualGeek.DownloadCounter-project What does this project do?This project allows you to simply create a list of files that can be downloaded by specifying some configs, adding just a little bit markup and including the projects assembly. You will also be able to use the methods for logging manually instead of using my prefered way by calling the BindHelper method to bind the log information to a repeater. This project is no magic. I just wanted to keep out the lots of help libraries other projects use and just provide a simple way to store download counts in a database.
How does it work?The project simply converts the passed paths to relative paths and stores them with an int and the current date into the database. If the path already exists, it increments the number as long as the date won't change.
What to come?I will add several functions shortly. At the moment I've just added all I needed for a current project a friend asked me to help him with. So it just stores date specific download counts to the database. In the near future I'll also add a statistic helper (written and graphical [of cause - i like that graphical stuff]) to enable you to get the results of the logs not only summed up, but also date specific.
The next thing I'll change will be to use LINQ instead of sql commands for storing into the database.
NewsNew release added: 0.3.0.0
Look at the following changelog. ;-) I think the new feature which is pretty cool is the support for storing the file counts in an xml file, which enables you to work without a database ...
Changelog:Release 0.3.0.0:
- Fixed some minor bugs.
- Added support for switching the storage type between XML and MSSQL-Database