Click here to Skip to main content
15,902,299 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI
I have a page which has got several videos based on the category.I wanna find out number of time a particular video has been hit in the page.Any suggestion or Idea.
Posted

1 solution

You can intercept requests to static and non-static content in global.asax or by implementing a managed handler/filter.
If you are serving the videos from an action you can simply put the counting logic there. The proper solution also depends on the IIS version and the asp.net version you are using.
Please read these two articles:
http://blogs.msdn.com/b/tmarq/archive/2010/04/01/asp-net-4-0-enables-routing-of-extensionless-urls-without-impacting-static-requests.aspx[^]
http://msdn.microsoft.com/en-us/library/ff649096.aspx[^]
[Update]
A general view on the IIS processing pipeline can be also useful: http://www.iis.net/learn/get-started/introduction-to-iis/introduction-to-iis-architecture[^]
 
Share this answer
 
v2
Comments
Zoltán Zörgő 21-Jun-13 5:51am    
I would appreciate a comment on the downvote.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900