Incremental page views on asp.net razor

m@ruthi

New Member
I want views column incremented by 1 every time user visit the page in the database, i did code as follows but it just show 1 all the time\[code\] var updateCommand = "UPDATE Items SET views=@0 + 1 WHERE id=@1"; viewsdb.Execute(updateCommand, views, id);\[/code\]
 
Back
Top