开发者

Set asp.net page to one time only showing

How do I set a asp.net page to show only once? So if a user 开发者_如何转开发logs back in again that page wont be displayed again.


Set a flag for the user in the DB and display based on that.


You'd have store a flag in your database or elsewhere that indicated that a user has already seen that page.


If you have a record in your backend database for each user, you could add a bit field e.g. IsPageViewed. In the Page_Load() event of the 1-time-only page, set the value to 1.

When the user next logs in you can then redirect according to this flag.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜