SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create Polling app. For that i want to learn about survey list. That can I add update delete survey list data Programmatically.? First of all i want to create a web part which perform this but I am not able to find any logic according to this on google.

I am trying to search web part which lets me know how to manipulate Survey List?

share|improve this question

surveys are just another type of lists, you insert items the same way you do it with normal lists

Here is sample code for manipulate list

SPList list = web.Lists["My survey"];
web.AllowUnsafeUpdates =true;
SPListItem item = list.Items.Add();
item["This is my question number 1"] = "this is the answer";
web.AllowUnsafeUpdates =false;

Hope this helps

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.