如何限制最终用户参加一次民意调查 [英] how to limit a end user to attend a poll onky once

查看:90
本文介绍了如何限制最终用户参加一次民意调查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i想创建一个民意调查应用程序,一旦他的意见被添加,用户只竞选一次他就不能投票给同一个民意调查。

我怎么样可以在我的应用程序中实现这一点

Hi,
i want to create a poll application where the user contest for poll only once once his opininion was added he cannot vote for the same poll.
how i can achieve this in my application

推荐答案

如果用户已注册,则有一个pollusermapping表。存储已投票的用户ID。每次用户投票时检查。如果用户ID已经存在,则不要添加详细信息并通知用户..



如果用户未注册,那么我的知识是不可能的限制用户...



问候

Dinesh Kumar.V。
If the user is registered, then have a pollusermapping table. Store the user id who have voted..Check every time when a user votes. If the user id is already existing then do not add the details and inform the user..

If the user is not registered, then it is not possible to my knowledge to restrict the user...

Regards
Dinesh Kumar.V.


参考:

http:// www .c-sharpcorner.com / uploadfile / b846a8 / creating-a-poll-system-in-c-sharp / [ ^ ]

这可能会有所帮助。
Refer:
http://www.c-sharpcorner.com/uploadfile/b846a8/creating-a-poll-system-in-c-sharp/[^]
This may help.


这篇关于如何限制最终用户参加一次民意调查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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