Visit Counter for ASP.NET MVC Website

How to create a hit counter (hit counter) for each page on an MVC website? And store the information in the MS SQL database. Same as stackoverflow using on every page.

Please show me an example. Thanks u

+3
source share
2 answers

On the main page, insert a function call that registers the page name or any other information you need. Launch your account and there you go.

+1
source

I was able to do this using Session variables, sql server db in ASP.NET MVC.

. IP- . . , Stackoverflow, .

.

, - -, , sql- ( ). - , . , - , , . (, ) -, , . , .

, . , , , . db, . . , .

: asp.net mvc ( HIT)

0

Source: https://habr.com/ru/post/1787445/


All Articles