Static variable in asp.net page

前端 未结 5 2046
无人共我
无人共我 2020-12-25 14:24

I am having one doubt regarding the use of static variable in Asp.net pages.

I am having one page say UserDetails.aspx. In this page, I have one static variable to s

5条回答
  •  抹茶落季
    2020-12-25 15:03

    usually to do this a database is used

    Data Table
    userId | UserViews
    

    Also you can use static variable as u are saying in that case you have to store data in Application State, problem with that is, ur whole data will be resett whenever ur will re-start.

提交回复
热议问题