用户每月只能点击一次。在vb.Net [英] User only able to click once for every month. in vb.Net

查看:90
本文介绍了用户每月只能点击一次。在vb.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我想问一下,当用户每月只能点击一次时,我该如何设置按钮?



示例:

我有1个添加按钮和1个创建时间列。

当用户单击添加按钮时,Created On将添加一条记录。

但是如何设置它用户每月只能点击一次???



谢谢!

Hi all

I would like to ask how can I set the button when User only able the click once for every month??

Example:
I have 1 "Add" button and 1 "Created On" column.
When user click "Add" Button, "Created On" will added one record.
but how can I set it User only able to click once for every month???

Thank you!

推荐答案

假设VB.NET意味着这是一个基于Web的解决方案,有两种方法:你可以在用户计算机上设置一个Cookie它将在月末到期,并在您加载页面时检查 - 如果它在那里,请禁用该按钮。

另一种方法是存储数据库中单击按钮的最后日期使用登录详细信息,然后在加载页面时进行检查。
Assuming that VB.NET means this is a web based solution, there are two baisc methods: you can set a Cookie on the users computer which expires at the end of the month, and check that when you load the page - if it's there, disable the button.
The other alternative is to store the last date the button was clicked in your database with the login details and check then when you load the page.


这篇关于用户每月只能点击一次。在vb.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆