New CodePlex Web Part–PollWebPart (for the lack of a better name)


So, this is how I decided to spend half of one of my days off.  Isn’t this sad?  I am addicted to development.

I created a new voting web part that will allow users to vote once, and it will add a cookie to the users computer that will expire in 14 days, or until a new question comes around.

It allows the user to use more than one list to store your question allowing for multiple concurrent polls at once.

I first tried to download and install: http://pollingwebpart.codeplex.com/ however I could not get it to work with SharePoint 2010 even after I made the configuration changes.  I decided to create my own at this point.

The project will be stored here: http://pollwebpart.codeplex.com.  I will upload it shortly.

Here are the screenshots:

Before Vote (supports up to 70 questions):

image

After Vote (Only shows the answered questions)

image

And here is the configuration…  You just enter the name of the list.  The list will be stored at the root site.

image

And here you can add items to the list.  The poll only shows the last item in the list. 

image

Categories: SharePoint or Custom Development | 7 Comments

Post navigation

7 thoughts on “New CodePlex Web Part–PollWebPart (for the lack of a better name)

  1. Alex

    Nice work, but I can’t stop laughing at the poll. Reminds me of this quote: Try as hard as we may for perfection, the net result of our labors is an amazing variety of imperfectness. We are surprised at our own versatility in being able to fail in so many different ways. – Samuel McChord Crothers

  2. zeytoon

    Hi
    many thanks for your web part. but how can I use it for working with MOSS2007?
    I can not install it for moss2007.

  3. Billy

    Bill, I keep getting “Problem: No questions were in the list to ask. You must add questions. Click here to be redirected to that list.” I have created a question in the list, but it doesn’t show. Can you help? Thanks sir.

  4. David

    Hi Bill, I am having the same issue as Billy, a question exists but is not displayed on the same message as Billy.

    Can you assist?

    Thanks

  5. Paddy

    Are you using OOTB Survey List or using a custom list as survey list ? If custom list will it be possible for you to share the schema, please.

  6. Carlo

    Billy & David I had the same problem after debugging I found that if you leave the Desciption empty a null exception is catched. So fill some text in the desc field and it should be fixed.
    You can do some additional null checking to fix the problem to.

    @Bill Great job !!!!

    Grtz,
    Carlo

  7. rijusharepoint

    Hi bill,

    I have deployed the your solution and created a list for the survey .added question to the created list.

    on the page i can see only “Problem: No questions were in the list to ask. You must add questions. Click here to be redirected to that list.”
    under that “caste vote”.

    Questions are not displaying on the page .

    Thanks & Regards,
    Rijuv

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Blog at WordPress.com. Theme: Customized Adventure Journal by Contexture International.

Follow

Get every new post delivered to your Inbox.