Questions tagged [web-parts]

Web parts are are the building blocks of Microsoft SharePoint web pages.

1693 questions
3
votes
2 answers

impersonate as different user inside the webpart code

I use the sharepoint lists as a database. I want to somehow impersonate as different user inside the webpart code and than as this user I will have both write and edit permission to the list. My goal is to be able to have full premission only…
user554672
  • 124
  • 2
  • 11
3
votes
2 answers

Getting a random UserProfile In SharePoint 2010

I am trying to retrieve a random number of users from the UserProfileManager. But I am encountering errors when deploying to the live servers. I can't seem to see what is causing the error. My code is below: for (int i = 0; i < NumberOfUserLimit;…
R100
  • 471
  • 1
  • 10
  • 25
3
votes
5 answers

What's your experience with using ASP.NET 2.0 webparts?

I would like to know your experience with ASP.NET webparts as a reusable component in your website. How useful did you find it? Did you find any serious issues with it? Would you recommend it using in any asp.net project? Any best practices or…
rajesh pillai
  • 8,102
  • 7
  • 43
  • 60
3
votes
4 answers

Sharepoint development - multiple webparts in same solution, or project for each?

I'm working on a Sharepoint 2010 project that has quite a few visual webparts. Currently I have all web parts in the same solution. My colleague is working on the same project, but is creating a project for each web part inside the solution. What's…
ScottE
  • 21,530
  • 18
  • 94
  • 131
3
votes
2 answers

Inherit existing web parts and override methods

When developing web parts in SharePoint can I inherit from the existing web parts and override their methods? Or do I always need to start from scratch. Many Thanks
78lro
  • 1,790
  • 7
  • 37
  • 63
3
votes
6 answers

SharePoint Web Part to display users by AD/SharePoint Group

I'm trying to create a SharePoint web part that will display all the users in a certain active directory or SharePoint security group. So for example on the home page for a department called Human Resources, the web part will list all the people who…
78lro
  • 1,790
  • 7
  • 37
  • 63
3
votes
3 answers

Sharepoint 2010 register control as safe through wsp

I created a "Hello World" Sharepoint 2010 solution using VS2010. It contains just a feature, and a webpart containing a label. I registered the webpart as a safe control in the "Properties" window of the webpart, in VS2010. When I deploy my…
Diana
  • 101
  • 2
  • 5
3
votes
3 answers

How can I extend the OOTB Content Editor Web Part in Sharepoint 2010?

I need a webpart that has a plaintext field for a title, an image for a thumbnail and a HTML content-editable block, so I thought the best way to do this would be to try and extend the existing Content Editor Web Part. Unfortunately, the CEWP is…
Henry C
  • 4,781
  • 4
  • 43
  • 83
3
votes
2 answers

How to Create a custom Application Page with webparts for sharepoint in VS2010?

I am very new to Sharepoint, and I am not 100% sure if this is the correct way to do this but here it goes. I have a very bare master page that I want to have a custom application page load up in. On that application page I want to have 2 web parts.…
Paul Parker
  • 467
  • 1
  • 8
  • 21
3
votes
1 answer

Sharepoint default list item detail view

I have a webpart that renders random list items (from any list and list type) in a specified format. I want the items that are being displayed in the webpart to link to their ListItem detail views. However, I don't see a property on the list…
Ryan Eastabrook
  • 4,085
  • 5
  • 30
  • 35
3
votes
2 answers

Error Code: 3604 when deleting file from SharePoint Document Library

I'm developing a WebPart in SharePoint 2007 and sometimes when I try to delete a file from Document Library with code like this: SPWeb web = SPControl.GetContextWeb(WebPart.WebPartContext); SPList list = web.GetList(web.Site.Url +…
igorti
  • 3,828
  • 3
  • 22
  • 29
3
votes
2 answers

Sharepoint Custom Filter Web Part

I want to create a custom web part that has more than 1 filter web part and that can be connected to Report Viewer Web Part (Integrated Mode) at runtime/design time. I searched a lot for this, but could not find a way to have single web part that is…
BizAnu
3
votes
1 answer

What are some good techniques for performance testing SharePoint web parts and controls?

This is a question about performance testing specific to SharePoint web parts and controls (although standard ASP.NET methods would be applicable as well). I'm wondering what are some good techniques, considering factors such as: caching (what and…
Alex Angas
  • 59,219
  • 41
  • 137
  • 210
3
votes
1 answer

How to embed SharePoint 2013 webparts directly in aspx layout page as default webparts for that layout

I am using SharePoint 2013, and have a custom master page and several aspx layout pages all of which to be deployed get copied into the "Master pages and page layouts" section within Site Settings. These aspx pages contain web part zones, but how…
redfox05
  • 3,354
  • 1
  • 34
  • 39
3
votes
2 answers

MOSS'07 - Page View Web Part Slows Menu Hovers

In our MOSS '07 site we have a page that contains just a Page Viewer web part in it that points to a site on another server. However, I've noticed that on that page (and any others that have a Page Viewer web part on it) our drop down menus and…
Dan
  • 93
  • 6