Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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? - jasear.wordpress.com/2009/04/05/… –  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
add comment

Your Answer

 
discard

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.