p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 (http://p2p.wrox.com/forumdisplay.php?f=264)
-   -   Opinion Polls enhancement (http://p2p.wrox.com/showthread.php?t=45099)

void July 11th, 2006 02:12 PM

Opinion Polls enhancement
 
In the end of Chapter 6 Opinion Polls, Marco adds a few suggestions. I am interested in making the polls only available/visible to registered users. I think I have an idea on how to do this based on reading the "Only for Members" part of Chapter 5.

Basically I am just interested on how you would implement this enhancement yourself.

Thanks

"Everything should be made as simple as possible, but not simpler." - Einstein

MythicalMe July 12th, 2006 12:24 AM

While I haven't done this for The Beer House, the first version's poll control is quite similar. My implementation was not to make the entire implementation invisible. The usual method method is to entice users to want to vote and therefore register. So in the page load event of the control, I set the Vote button visible property to Context.User.IsAuthenticated. To make the entire control visible based on authentication could be done from the template page load event.


SoftMind July 12th, 2006 10:42 PM

Hello Void,

I have a very good solution for opinion polls here.

Pl. have a look at the following site and dowload the working poll source code from the same link.

http://www.binaryintellect.net/artic...cle.aspx?id=12

Thanks

SoftMind



All times are GMT -4. The time now is 03:02 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.