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 added a ListViewWebPart that is setup show the Shared Document list and the first view. My problem is that I do not get the New Dokument link in the web part. How do I get the web part to show the New Dokument button, using code?

share|improve this question

From the web part's "Verbs Menu" (arrow in top right of web part) click Modifiy This Web Part, and there should be an option somewhere to display the Toolbar. This will give you the New button, as well as Actions and Settings.

share|improve this answer
I would like to do it in code – gaotter Jan 28 '11 at 8:52
Ah right, had a look at this? -… – James Love Jan 28 '11 at 9:51
I was able to sett the toolbar, but the link did not appear. – gaotter Jan 29 '11 at 22:27
up vote 0 down vote accepted

I found that for me the solution was to use the new XsltListView web part. Here the new item link is default when adding it in code.

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.