Click here to Skip to main content
15,075,944 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi..
I am beginner to mvc.I want to know how many times perticuler page will load.I want to do something when page is load first time.How to know is page load first time???
Thanks...
Posted

1 solution

on page load, update your table in database. like create a table name "count". on every load increase the count value.

To update only in first time load use (ispostback) property only for this update code
   
v2

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