VisualGeek.DownloadCounter 0.3.0.0

 Recommended Download



Example VisualGeek.DownloadCounter.Web.zip
example, 43K, uploaded Aug 20 2008  - 22 downloads

 Other Available Downloads



Application VisualGeek.DownloadCounter.dll
application, 18K, uploaded Aug 20 2008  - 11 downloads
Documentation VisualGeek.DownloadCounter.sql
documentation, 1K, uploaded Aug 20 2008  - 14 downloads
Source Code VisualGeek.DownloadCounter.zip
source code, 13K, uploaded Aug 20 2008  - 20 downloads

Release Notes

This release allows you to simply add an assembly to your project, specify some configs and add a little bit markup to be able to display a list of downloads including their current download counts. There's a control available named "CountedDownloadButton", which helps you with the work in the repeater. You could do everything manually, but I recommend to just create a repeater, let my code bind the infos to it and just format the output as you wish.
The "CountedDownloadButton" automatically attaches an Click-event to log each click and add the file which the user requested to the HttpContext.Current.Response object. This works currently quite good in IE, but unfortunately the Firefox seems to need the Content-Type. This will be added shortly.

Authors page
http://blog-en.visualgeek.net

What needs to be done

@Web.config
- Add an appSettings key named "VisualGeek.DownloadCounter.ConnectionStringName" and specify in the value the key of the connection string the DownloadCounter should use.
- [Optionally] Add an appSettings key named "VisualGeek.DownloadCounter.Table.DownloadCounts" and specify the name of the table to use in the value of it. If you don't specify the this value it will assume that there's a table named "vgDownloadCounts". I chose to prefix the table name, because it could be possible that I'll add several other statistics in further tables._
- [Optionally] Add an appSettings key named "VisualGeek.DownloadCounter.StorageType" to switch between XML and SQL storage mode. The new default value for this key is "XML" - alternative you can set the value to "SQL".

@Database
- Add a table (check out the web.config TODOs for it's name) with the following fields:
=> Id [uniqueidentifier]
=> RelativePath [varchar(MAX)]
=> CountedDownloads [bigint]
=> Date [datetime]

(You could also just execute the attached sql file, but could become more unhandy during the next updates).
 Reviews for this release
No reviews yet for this release.
Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987