Web parts are ASP.NET controls that can be added to web part zones.
4
votes
1answer
4k views
Custom webpart properties not holding their values!
I am dynamically adding items to a CheckBoxList that configures some settings in my web part. When I set the properties and click "OK" everything on my page works as expected and displays that data ...
4
votes
3answers
803 views
.Webs and anonymous access?
We're developing a public facing SharePoint site so it have anonymous access. To be able to run custom web parts that access lists/libraries we need to run with elevated privileges which works fine, ...
4
votes
2answers
2k views
SharePoint 2010 web membership through Active Directory group web-part to display user list
I'm building a SharePoint environment that will be composed of many departmental sub-sites. Each of these sub-sites will have membership defined through Active Directory groups. I need to display on ...
4
votes
3answers
198 views
Managed metadata refiners are not appearing
I have a site collection with many document libraries and document sets.
I have created a managed property for each crawled property that I needed in the refiner, 4 out of 5 fields are managed ...
4
votes
5answers
12k views
Webpart to display list of subsites?
I would have thought SharePoint 2010 still had a built-in webpart to display a list of subsites as I could in previous versions. I'm having great trouble finding it, though.
How does one display a ...
4
votes
3answers
2k views
How to prevent a SharePoint web part from being crawled
We have a custom web part for our SharePoint 2007 farm that calls a very large report (lots of views and stored procs being called) that is used on hundreds of pages on team sites and MySites. We get ...
4
votes
2answers
4k views
How do I change the background color of a web part?
I've got a document library embedded on the home page of one of my SharePoint sites. Someone changed the background color to grey, overriding the site's theme background color, which is white.
I've ...
4
votes
2answers
660 views
Changing a view doesn't automatically reflect on page
We've got a simple view for a list. When we add/remove columns, the view doesn't automatically reflect the changes; we have to go to the publishing page, click Edit Web Part, and re-select the view in ...
4
votes
1answer
55 views
How can I add a global control to check user has updated her/his profile?
Is there any control/feature/webpart I can add to trigger a functionality globally in any page on a Sharepoint?
I now have a webpart on the homepage that checks if a user is due to update her/his ...
4
votes
1answer
3k views
Setting default value for custom webpart property
im trying to set a DefaultValue for my custom webpart property..
namespace Beraterprofil.VisualWebPart1
{
[ToolboxItemAttribute(false)]
public class VisualWebPart1 : WebPart
{
...
4
votes
2answers
3k views
Understanding problem: How to add a stylesheet to a web part
Well, I try to add a css stylesheet to my web part but it didn’t work… I read that there are many ways to a css file into a web part, but I didn’t understand them….
First I installed the Sharepoint ...
4
votes
3answers
2k views
Web Part Tool Part Customization issue
To customize the Web Part Tool Part, im following this tutorial :
http://blogs.microsoft.co.il/blogs/dudin/archive/2011/04/17/sharepoint-2010-how-to-customize-the-web-part-tool-part.aspx
when i use ...
4
votes
2answers
1k views
How to change sort order of axis on Chart Web Part?
I have a Chart Web Part that is connected to a SharePoint list. I modified the All Items default view of the list so that it would be sorted correctly but the Chart Web Part does not pickup on the ...
4
votes
2answers
667 views
Web Parts for both 2007 & 2010
I'm curious if anyone has seen any guidance/best practices on developing web parts that can work for both SP2007 & SP2010 with minimal conversion? They wouldn't take advantage of any new 2010 ...
4
votes
2answers
73 views
Sharepoint 2013 - Can I use Visual Studio 2012 express edition for web-parts and app parts?
I am new to SharePoint 2013. I want to develop the app and web parts using visual studio 2012 express edition. Can I use vs 2012 express edition to create app and web parts for SharePoint 2013? Can ...
4
votes
1answer
795 views
How to have two web parts side by side in same zone
I have two web parts that i want to fit side by side in the same zone, however, I'm not sure how to go about this. I've modified the width of the individual web parts to be able to fit side by side ...
4
votes
3answers
209 views
How to add webpart to blog post?
The idea is to use SharePoint Blog site as news site. Every new post has it's own pictures which users must see.
I found a great webpart (Mirata Picture Gallery) for displaying images from Photos ...
4
votes
1answer
125 views
Bulk Sharepoint Webpart Modification
Is there a way to go in and edit a set of webparts in bulk, instead of one by one? We've got a site with roughly 75 pages with an average of 3 webparts per page. Each of those webparts have a section ...
4
votes
2answers
306 views
Contributors can't seem to save personalisable web part properties?
I've using the following code to save the week a user is currently looking at, for next time they view the web part:
private string _week = null;
[WebPartStorage(Storage.Personal)]
public string ...
4
votes
3answers
366 views
Manage some state inside a Sharepoint WebPart
Considering a simple example of a webpart that adds items to a list based on a simple button click:
public partial class MyVisualWebPartUserControl : UserControl
{
private int cont = 0;
...
4
votes
3answers
2k views
The same web part (.wsp) for MOSS 2007 and SP 2010?
Is it possible to have the same web part (.wsp) for both (MOSS 2007 & SP 2010)?
Assume that I want to develop a simple web part, and I want to deploy it on MOSS 2007 and also on SP 2010? So, is ...
4
votes
3answers
1k views
How do I find out what's wrong with my sandboxed solution in SharePoint Online?
I have created a custom web part which presents a form to create a SharePoint site below the current site, while performing some ancillary actions like updating a list of subsites on the front page to ...
4
votes
2answers
660 views
Sharepoint 2010 Webpart Ajax not working
I have a custom webpart within Sharepoint and am trying to apply some ajax to the webpart.
The same code works within a .net web application but not within a sharepoint web part.
The code from the ...
4
votes
2answers
1k views
Removing Orphaned WebParts via PowerShell - CheckIn/CheckOut Requirement Loop
A client migrated from 2007 to 2010 doing a database detach/reattach without checking the database for orphaned objects first. I whipped up a PowerShell script to programmatically remove orphaned ...
4
votes
1answer
345 views
How to customize a ListView Webpart from code
I have a repository of files... I'd like to create a ListView Webpart wich receives the path in the tree and show the files in the document library... It's possible to do this by code? Is there any ...
4
votes
2answers
2k views
How to use InputFormTextBox in a custom web part ?
I'm currently trying to integrate a rich text editor into my web part.
I've found that I can integrate an InputFormTextBox in my aspx page :
<SharePoint:InputFormTextBox ...
4
votes
1answer
42 views
Boundaries in diagram with Date as X
I've recently been trying to build a line diagramm webpart with dates as X
Problem is: I can't find a way to adjust the boundaries of the diagram which causes it to start in ~1900
At the moment it ...
4
votes
1answer
175 views
Web parts not working when applying new master page
I started a small Sharepoint site as a rush job. It's a bunch of fairly simple web part pages. Now that we're expanding it, I need to add a different master page. I was using our client's master ...
4
votes
1answer
399 views
Consumer+provider web part connections: output is asked before input
I created a simple web part that has both a consumer and a provider connection. The provided output depends on the consumed input (so this is a sort of pipeline approach). I managed to implement the ...
4
votes
6answers
3k views
Refreshing custom developed web part
I've developed a custom web part that pulls data from a list. It will only retrieve items where a field called ShowItem is equal to 'Yes'. Once the data is loaded the end user has the ability to ...
4
votes
1answer
3k views
How to create .dwp WebPart in Visual Studio 2010?
I need to know how to create a web part with visual studio 2010 and deploy it with a solution package in a feature.
When I try to do it by just changing the .webpart file to a .dwp file and change ...
4
votes
1answer
2k views
Deploy a web part to a page during feature activation within a Sandbox Solution
I've been hitting my head against a wall on this one for the last couple of days. I have a pretty simple requirement but I cant see how it can be achieved within a Sandboxed solution. I'm depressed ...
3
votes
3answers
10k views
Hide the “Add new Item” option below the sharepoint 2010 list
I have a sharepoint 2010 list, I want to hide the option "add new item" which resides below the list, any suggestions?
3
votes
2answers
2k views
Is it possible to add web parts to an application page?
I was asked to add a list view web part to an application page.
I added a web part zone into the page markup. I got a security error when I tried to add it so I added a form digest control (not sure ...
3
votes
3answers
2k views
After retracting webpart solution webparts still showing up
I retract a webpart solution that was deployed via Visual Studio. Then when i edit a page for some reason the Custom category + the webparts are still being listed when i try to insert a webpart. ...
3
votes
3answers
188 views
Developing a custom webpart to improve the page performance
I need a suggestion for a specific development requirement; it is just for a sub-site.
The sub-site has a single list with 20 columns and 850+ items. Now, in the home page, I have to have there ...
3
votes
3answers
2k views
How to deploy web part solution to multi-server farm?
I am having a heck of a time deploying a simple web part to a multi-server farm. The error I receive when deploying is: Error occurred in deployment step 'Activate Features': Feature with Id ...
3
votes
2answers
559 views
Custom webpart being rendered twice on layout page
using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.SharePoint;
using ...
3
votes
3answers
921 views
Can I use a ListView in a web part?
I went to add a ListView to a visual web part I had created and it didn't show up in Intellisense. I figured it was just a hiccup in the intellisense so I just typed it in manually but when I run the ...
3
votes
2answers
106 views
Location aware Silverlight webpart
We are designing a system where we will have a site per customer. The site will be created based on a custom site template.
This site will have a Silverlight webpart, that will get data from a ...
3
votes
5answers
441 views
Automatically add tag to uploaded document in sharepoint
My environment is sharepoint 2010 and vs 2010.
I already have an OOTB document library that I am using and I wanted to know how I can add a tag or keyword to a METADATA column.
I am using the same ...
3
votes
2answers
369 views
A-Z view for a document library
Is it possible to create a webpart for document library that will look like this?
http://i.stack.imgur.com/EU952.gif
3
votes
5answers
1k views
Visual web part and custom web control - can't register
I have created visual web part and copied custom web control which I'd like to use. My control looks as below:
namespace AppsListWebPart
{
[ToolboxData("<{0}:CustomImageButton ...
3
votes
1answer
1k views
Select the ListView Web Part Automatically on AllItems.aspx
In SharePoint 2010, if you have more than one web part on a web part page, the ribbon disappears because SharePoint doesn't know which web part to display the ribbon for (this is by design because if ...
3
votes
2answers
1k views
What are the disadvantages of Visual Web Parts?
I am really wondering what the disadvantages are when using a Visual Web Part. All the books and articles on the internet only talk about the pros. But I am sure the are some disadvantages, beside the ...
3
votes
4answers
1k views
How to develop “Form Builder” web part?
I want a Form Builder web part. This web part would create basic forms dynamically on the fly by drag-and-drop controls. These forms would send the form values as an email and/or store information in ...
3
votes
2answers
1k views
How to refresh the parent page using Server side API when the sharepoint modal dialog close?
I have a Web Part with a grid view and a linkbutton for add item.
I use this code for show modal dialog when linkbutton click .
...
3
votes
1answer
1k views
How to import external javascript in a User Control?
I have a code-behind User Control (myUserControl.ascx and myUserControl.ascx.cs) that are in
ControlTemplates/MyFolder/
and, in the code of myUserControl.ascx I need to use some javascript ...
3
votes
3answers
768 views
Possible to programmatically display a list of all web parts and dynamically render on a page?
Is there anyway to use the object model to display a list of all web parts installed (say in a list box)? If so would it then be possible to render that web part on a page if it were selected?
3
votes
1answer
638 views
Webpart Custom Properties
With this attributes decorating the Properties of a Web Part...
[WebBrowsable(true)]
[Category("Common Settings")]
[WebDisplayName("Show tab header")]
[WebDescription("Show tab header for the News ...
