Web parts are ASP.NET controls that can be added to web part zones. They are generally distributed as WSP files. Pre-2013, they could be developed off the hosting server. With 2013, WebParts for the most part have to be developed the hosting server for propery library inclusion.

learn more… | top users | synonyms (3)

0
votes
1answer
297 views

Extending WebParts or using Client side script: Best way?

I currently have a "Dashboard" full of CEWPs and DFWPs. It is required that the user can see the last update DateTime for each web part, which I would define as the greatest Modified DateTime of the ...
0
votes
2answers
135 views

PageViewerWebPart strange behaviour

i have a custom prop for ContentLink for PageViewerWebPart and the strange thing is that, if i enter www.yahoo.com i get this below error: The following file(s) have been blocked by the ...
0
votes
1answer
382 views

Validating web part custom property with ajax enabled?

i am using web farm solution and i have implemented few custom properties and my question is, is there a way i can enabled AJAX? when the user enter the bad name i validate in the prop and display ...
2
votes
5answers
239 views

Getting twitter updates into sharepoint

I would like to get the twitter updates from a user account onto my SharePoint site. Please suggest me how to use that functionality.
1
vote
0answers
90 views

Why is the ConnectionInterface object in my custom consumer web part null?

I connected two web parts using a Provider web part, an IConnectionInterface and a Consumer web part. After adding both web parts to my site, the consumer webpart is unable to receive the parameter: ...
0
votes
1answer
199 views

how to render my custom web-part as soon as i insert on the page?

i have created a web-part that user will define the url to render and after user insert the web part on the page it did not renders, user have to edit and enter the url and click apply or ok button in ...
1
vote
0answers
505 views

How do I make the XML Viewer web part ignore a Doctype element?

I have an issue with a SharePoint 2010 xml viewer webpart and an xml feed that contains DOCTYPE. The xml renders fine when there is no associated XSL with the webpart. When I add XSL to the webpart I ...
1
vote
2answers
3k views

How to Remove/Delete a custom web part from SP2010

how to i remove/delete web-part from SP 2010 i tried the below command and it does says operation complted successfully but it still shows up in the custom web part bucket when adding webparts... ...
0
votes
1answer
218 views

how to use SharePoint 2010 web-part - after deployed?

i execute this command on power shell Add-SPSolution C:\Deployment\MyFristWebPart.wsp after execute i get this result: Name SolutionId Deployed ...
0
votes
1answer
3k views

how to deploy custom webpart from one server to another (sharepoint 2010)

Update1: PS C:\> Add-SPSolution c:\Deployment\MyFirstWebPart.wsp Install -SPSolution -Identity NameOfWSP -WebApplication http://sp2010 -GACDeployment Add-SPSolution : A positional parameter cannot ...
1
vote
4answers
2k views

An auction site in SharePoint

I would like to create some sort of auction site in SharePoint. It does not have to be a fantastic one, it has to provide service to +/- 800 employees. It does not actually have to have auctions with ...
0
votes
3answers
629 views

Getting SharePoint absolute site url

I need to get the current absolute url of my site from inside code-behind. I tried SPContext.Current.Site.Url and get this error Value does not fall within the expected range. The goal is to get ...
1
vote
3answers
516 views

passing the sharepoint site name - dynamic or in web.config?

i am looking for a way to easily interchangeable the SPSite name and currently i have hard-coded as you can see below... so what is the best way to deal with this issue, i have DEV/QA/PROD box and i ...
0
votes
1answer
171 views

Creating a web part to manipulate List Data bypassing List and ListItem security

I have a Tasks List and I need to create a Web Part to display one view of that list (with a functionality similar to a List View Web Part: item viewing, editing, sorting, filtering, etc). However, ...
0
votes
2answers
1k views

Customizing Web Parts - Hiding property in edit mode?

Update: private string _catalogIconImageUrl = "http://hostname/images/favicon.ico"; [WebBrowsableAttribute(false), Category("HIDDEN"), Personalizable(PersonalizationScope.User), ...
0
votes
1answer
131 views

Add Sharepoint's auto-generated web part for List Instances to a page programmatically

When I create a List Instance in Sharepoint, it allows me to add a view of that List as a Web Part, via the UI. Example: How can I add this web part programmatically via the SPWebPartManager ? (I ...
2
votes
1answer
1k views

SharePoint 2010 - Add WebPart reference to PowerShell script

I want to add a new developed WebPart to a SharePoint site with PowerShell. How it is possible to add the WebPart reference from my WebPart to the PowerShell script? $web = Get-SPWeb $urlWeb ...
1
vote
3answers
573 views

Error occurred in deployment step 'Recycle IIS Application Pool': Microsoft .NET Framework 3.5 SP1

I recently installed Sharepoint 2010 Foundation on my windows 7 machine, this itself took a while but appears to be ok, ie create sites, libs etc etc. I'm now trying to create a simple webpart which ...
1
vote
2answers
3k views

how to add image to SP 2010 WebPart

UPDATE: i want to do that in all in code-behind and i know you can do that in feature.xml but i am not sure how exactly. I am creating a custom web part and i am looking for a way to have my logo ...
1
vote
3answers
738 views

sharepoint 2007 wiki customization

I have been asked to customize a SharePoint 2007 wiki site into a 'Wikipedia' like interface and functionality. After a bit of goggling it turns out that wiki's are not that readily customizable!! ...
3
votes
6answers
857 views

Security around Web Parts

I have been looking to wrap security around web parts. I already have security wrapped around documents so only the correct people see the allowed documents. The problem lies when a user does not ...
1
vote
2answers
1k views

Ribbon not available for list item in dynamically created XsltListViewWebPart

The situation is the following. I'm creating an XsltListViewWebPart during the Page LifeCycle which is added to the page Controls collection (or UserControl Controls collection). The ...
3
votes
1answer
2k 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
1answer
2k views

ListView Web part - customization

I created and deployed link list (default template (103)) from code and after that I added ListViewWebPart also from code which looks on default view of my link list. And that works. Problem: How can ...
9
votes
3answers
3k views

How to localize webpart title, description, group, quickadd group in Sandbox solution

I've seen other similar questions (like this one), checked Microsoft documentation (like all the ones stemming from and related to the page Localization of Sandboxed Solutions in SharePoint 2010), ...
1
vote
0answers
104 views

Reimplementing/Extending Data View Web Part Guidance?

My goal is create a Web Part in Sharepoint 2010 displays a grid bound to an External List and adds buttons that generate batch files in the filesystem. I have eliminated the possibility of using ...
0
votes
1answer
562 views

How does the Microsoft.SharePoint.Portal.WebControls.SiteDocuments web part work?

Here is a link to the SiteDocuments web part: http://msdn.microsoft.com/en-us/library/ms544079%28v=office.12%29.aspx Here is a picture of it on MySites: http://i.stack.imgur.com/TVQqM.png I want to ...
1
vote
2answers
241 views

Which web part is this?

When i create a blog site from the blog site template, it automatically adds this web part called "Archives". Now i would like to know how to add archives, and i would like to know the name of this ...
0
votes
1answer
1k views

Is it possible to restore the Blog Tools web part without exporting it to the gallery?

On SP Blogs, users are removing the blog tools web part from the default.aspx page. From what I've seen this isn't in the web part gallery (at least not in our environment). Is it possible to restore ...
1
vote
2answers
4k views

How to add code-behind to a User Control?

I have a User Control (myUserControl.ascx) with the code: <div id="content"> TEST USER CONTROL <div> that is called from a webpart: protected override void OnLoad(EventArgs e) ...
0
votes
1answer
1k views

category search not showing up in web part list

When i try to add a standard Search web part to my home page i cannot see the category search. In one of my site collections it is available, but in the other site collection it is not. Now i know it ...
2
votes
1answer
588 views

What is neccesary to write to filesystem from a Web Part?

How can I allow a web part to create a file on a unc path? I have a location with ntfs permissions set to everyone\full control and am getting 'access denied' messages. The SP2010 app pool is running ...
1
vote
2answers
5k views

How to know the path of the ascx in the Page.LoadControl?

I have a Webpart with a "main class" named myClass public class myClass : Microsoft.SharePoint.WebPartPages.WebPart and I want to load a ascx file from this class like this ...
2
votes
2answers
657 views

How do I disable the web part export option?

I have the requirement to not allow users to export my custom web part. How do I disable/hide the Export menu option?
1
vote
2answers
471 views

Unable to add two ajax web parts on same page

I created two similar visual web parts (one lists top 10 "popular-content" items, another top 10 "new content" items) with ajax support. For querying data from list (in both wparts) I use similar linq ...
1
vote
1answer
579 views

DIV with float:right doesn't work if web part on left

On SharePoint 2010, is it possible to correctly use float:right on a DIV and have web parts flow to its left in another DIV? I've tried this but the web part ignores the float and writes its content ...
2
votes
4answers
7k views

Content rotator for SharePoint lists

I'd like to build a content rotator web part for SharePoint 2010 to display list information. I'm working with the ever-popular AnythingSlider. A couple of questions: How would I let the page author ...
6
votes
7answers
6k views

What is the proper way to add jQuery to a MasterPage?

Currently I am using this method in the header: <script src="/_layouts/MNCAssets/scripts/jquery-1.5.1.min.js"></script> But for some reason, my webparts that use jQuery don't appear to ...
0
votes
0answers
70 views

Is the javascript in my webpart executing before the javascript in my MasterPage? [duplicate]

Possible Duplicate: What is the proper way to add jQuery to a MasterPage? I have a few webparts that use jQuery. Instead of adding the jQuery in each web part I decided to add it in the ...
0
votes
2answers
485 views

The following file(s) have been blocked by the administrator: /SitePages/ [closed]

Updated: According to the MSDN documentation, the ContentLink property can be a Url or file path. You can specify the SourceType property of the webpart so that it knows what to expect for the ...
2
votes
1answer
1k views

Creating Page Viewer Webpart Programmatically

I am trying to find a way to add Page Viewer webpart programatically and display the website in it...., i have a requirement where i will pass the url to display in the page viewer... below is the ...
3
votes
2answers
782 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 ...
2
votes
4answers
1k views

Creating a news site with out-of-the-box web parts?

In my company we have these periodically released news bulletins. One news bulletin is one html page. Now I am looking for a way to create a decent overview of these bulletins whilst also displaying ...
7
votes
1answer
648 views

Is it possible to hide a webpart from webpart gallery programmatically?

Is it possible to hide it? I'm developing a webpart for a special page and it shouldn't be possible to place it somewhere else.
1
vote
1answer
864 views

How to add a Toolpart in a CustomPropertyToolPart?

In a Webpart I have some customs properties. For the strings, booleans and enums, is all ok, but I have a problem with the selects (comboboxes). To use a select I needed to create a Toolpart that ...
1
vote
1answer
811 views

sharepoint announcement web part

I'm using SharePoint 2007, and I'm using the announcement web part. I have writed long description in the announcement web part. the default possibility, sharepoint display 3 line from the ...
1
vote
2answers
1k views

How to create a “select” custom property?

In a Webpart I want to set some customs properties. I have this code [Personalizable(PersonalizationScope.Shared), WebBrowsable(true), WebDisplayName("myName"), WebDescription("myDescription"), ...
1
vote
0answers
715 views

Page Viewer Web Part not working

I am using a page viewer web part to display linkedin on my sharepoint site. When i use this web part on my sharepoint stand alone server everything works just fine. When i try it on my sever farm ...
2
votes
1answer
528 views

How best to create CQWP and test

I'm working in SharePoint 2010 Server and creating custom content query web parts (CQWP) that point to custom ItemStyle_myTemplates.xsl file. To do this, I've been creating the CQWP in the browser by ...
1
vote
3answers
9k views

How to deploy webpart on production (not debugging) server?

I've created a web part, debugging it on a test Sharepoint 2010 install on my local workstation. I'd like to test it on our production server. It seems that I won't be able to use Build --> Deploy to ...