Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
hello;
I have made an online internet survey in my departement with asp.net 4.0.
in this form there is no login page for users, so the first problem my i face to is the loging of same users.

how can i prevent the same users to be able contribute in the survey twice?

Note: iam working in an institute that all PC are connected in network.

is there any solution for that?
Posted

What you can do is keep a list of Active Directory Users that has already filled the form and every time a user fills the form or access the page (you decide) you can validate against the list you are holding, and allow/deny actions accordingly.

To get the user's identity, you can try:
C#
Request.LogonUserIdentity.User

See more on LogonUserIdentity: system.web.httprequest.logonuseridentity.aspx[^]

Good luck,
Edo
 
Share this answer
 

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