0

Hi there, I wanted to know if there was a way you could enable a part of my site at a point in time and disable it after that time has past, is there anyway to code for that. For example I'm doing a project on online voting and I want the users to be allowed to register all the time but they may be only allowed to vote on election day and then they should not be allowed to vote again and/or if election day is over. If you have any ideas on different ways to do this, your help will be greatly appreciated. Im coding in c# on Visual Studio 2013

Edited by 21345570

3
Contributors
5
Replies
26
Views
3 Years
Discussion Span
Last Post by ggamble
0

Yes, you can do that. The controller that delivers your page can check the date and either deliver the voting page or an error page depending on whether the date falls into range of your voting period.

0

Oh thanks for your help, I will try it out and get back to you if I have any problems

0

Wrap it in an if then clause, checking a date?, then have a seperate panel with a message on why its not available. How are you going to stop them from voting twice? Coookies can be deleted ... a login page would be the only way, but even that can bve side stepped if you don't verify the user.

Edited by ggamble

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.