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)

1
vote
2answers
5k views

Help with adding a content editor web part to custom page layout in visual studio

I have created some page layouts with web part zones in visual studio and they work fine, however, I don't want to have to manually add web parts in the zones each time a new page is created using ...
0
votes
1answer
362 views

How can i enable a rich text box functionality on a custom webpart (New Form SP2010)

In SP 2007 when i add a custom new form webpart with a multiple line of text field i use to get the richtextbox feature But in SP 2010 custom new form webpart with multiple line of text field doesnt ...
0
votes
1answer
41 views

How to disable the onselect event when clicking a list web part on a page?

I have a list added to a web part page. When clicking inside the web part (not on a link in the list but in the area around it), the List Tools button (at the top in the ribbon) is selected. Is there ...
1
vote
2answers
2k views

Access denied in Sharepoint 2010 HTTP handler (.ashx)

I've developed a Visual Web Part for Sharepoint 2010 that includes an HTTP handler for some AJAX functionality. I followed this guide to accomplish this. I've createad a brand new SP 2010 web ...
3
votes
1answer
973 views

Content Query webpart- CommonViewFields vs ViewFieldsOverride

I'm reading up on the Content Query web part and based on this page, I can't understand the difference between the CommonViewFields property vs the ViewFieldsOverride property. How are they different? ...
3
votes
3answers
2k views

How can I remove the tables rendered around the webparts in the Rich Content area?

How would I override the tables rendered around the webparts in the "Rich Content" area? I have successfully removed the tables around webpartzones and their webparts but can't figure how to remove ...
1
vote
2answers
2k views

Using the Now() function in CAML Query?

i am trying to get the 3 most upcoming events from the current date and time (The current data and time refers the time everytime my web part loads. Basically it is not a fixed date and picks up the ...
0
votes
2answers
2k views

Populating a simple custom Event Web part that retrieves information from the OOTB calendar web part

I have a requirement to build a Event web part that shows the 5 most upcoming events and a see all link (that links to the OOTB calendar view). Here is a graphical representation: How exaclty do I ...
1
vote
2answers
808 views

Remove Select column in xslt web part

I have an xslt web part that I want to connect to another list. When I connect it to another list I get the select column that I don't want to see. How can I remove it? More info Originally I was ...
0
votes
1answer
5k views

An example of databinding the repeater control?

I am trying to develop a custom visual web part to display the latest 5 announcements with the images that are attached from the OOTB announcement lsit.I have a repeater control with an Item Template ...
1
vote
2answers
226 views

Web Part Module Itens error 404

We have a WebPart that has a module with resources (images, css and js files). Locally it works perfectly when deploying from VisualStudio. In a testing server we're deploying the webpart via ...
5
votes
2answers
4k views

Trying to use an SPWeb object that has been closed or disposed and is no longer valid.

I debugged this code and it never throws me an exception, however after ALL code is executed I got this message Trying to use an SPWeb object that has been closed or disposed and is no longer valid. ...
1
vote
1answer
5k views

CAML Query to filter a list item based on comparing item[“Title”] to ascx label.text control?

"<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>'Label1.Text'</Value> </Eq></Where>"; I have not run this and checked yet, simply because I ...
0
votes
1answer
514 views

What type of RSS feed does SharePoint 2007 want?

While trying to put an RSS reading web part into my SharePoint 2007 site, I used a random feed from the Web and it worked fine. I then created my own feed and pointed the web part to it and now the ...
7
votes
3answers
3k 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 ...
0
votes
3answers
8k views

Cannot connect to the Sharepoint Site from Visual Studio 2010

I'm new to Sharepoint. I'm trying to create a simple webpart using Visual Studio 2010 but when I try to validate my Sharepoint Server (both VS 2010 and Sharepoint are present in two different system - ...
0
votes
2answers
1k views

Web Parts Chrome Type is not Working

I am remotely connected to my clients sharepoint server 2010 standard using cisco vpn. I can see that the announcement list's webpart on our page has Title and Border which shows that chrome type is ...
1
vote
4answers
12k views

CAML Query to retrieve announcement items in descending order based on ID # - Not Working

spQuery.Query = " <OrderBy> <FieldRef Name='ID' Descending='True'/> </OrderBy> <Where> <Eq> <FieldRef Name='Title' /> <Value ...
1
vote
1answer
120 views

How can I include custom content with a form element in a page?

I have been trying to use the HTML Form Webpart and going into the Source Editor... Below if the form I am trying to paste in: <FORM onsubmit="return CheckForm()" method=post name=ttc ...
0
votes
1answer
2k views

Provision listview webpart on page layout using feature

I've deployed a custom page layout using a module in a feature, like this: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Module ...
2
votes
1answer
387 views

Is it possible to update .Webpart file and reflect the change on all uses of a webpart

I have a webpart that is a modified XSLT list view webpart in SharePoint 2010. I exported the webpart as a file and uploaded it to the webpart gallery manually. If the user adds this webpart to ...
0
votes
1answer
297 views

Create a feature receiver that adds the calendar webpart to the homepage?

I need to put the webpart calendar in a specific SharePoint 2010 site, but we need to do it by code. The calendar must be shown on the main zone. How can I add the web-part with C# code?
0
votes
2answers
226 views

Silverlight Map web part

I'm trying to set up a simple Bing Map web part that would pull list items to populate the map with pins. I was able to get a static data pull (created objects to populate pins), but once I tacked in ...
2
votes
3answers
547 views

Find version number of a webpart

There is a requirement to get the version number of another web part in a page to be displayed programmatically. We get details of the web part including the version number in the web part gallery as ...
0
votes
1answer
285 views

Will there be any changes to Web Parts in SharePoint 15?

I’ve search the web, as I usually do, but I does not find any useful information. Maybe it’s way too early to know of any specifics yet, but if anyone has any info on the question – please let me ...
0
votes
1answer
847 views

Add WebPart to page and lock it down (except for editing)

I'm building out some features for a publishing portal for a client, and I have a requirement to place a Content Editor Webpart on a page and prevent users from deleting, closing, hiding, or moving ...
0
votes
1answer
89 views

How to dynamically change the WebDescriptionAttribute of a web part?

I have a web part with a WebDescription attribute that contains a description of the web part. E.g. [ Category("Configuration"), Personalizable(PersonalizationScope.Shared), ...
1
vote
1answer
690 views

Possible to use createNewDocumentWithRedirect to redirect to a web based Infopath form?

We create a link to a InfoPath client-based form (meaning that the form is open at the client machine which have infopath installed.) by using the following source code inside a Content Editor web ...
1
vote
1answer
610 views

How to be able to edit CQWP added to custom page in VS2010?

I deploy a custom welcome page for a site and on the page I have a content query web part. The problem I have is that I can't edit the web part once deployed. If I go edit page -> I can select the web ...
0
votes
1answer
253 views

Inserted Webpart on Page Edit does not save

Inserting any webpart on page edit (I'm a farm administrator) shows popup dialog goes through motions (loading message behind modal) no error in ULS and does not actually place the webpart into the ...
0
votes
1answer
147 views

How to get user specfic details (like webpart, calendars etc) on homepage of the site?

We are running a NGO, which has some 30+ centers. And each center will have its own page or site which will be 30 in all. I want a solution where lists are visible depending upon which user from ...
2
votes
2answers
1k views

Moving web part zone from the bottom to the right in wiki pages [duplicate]

I have a Wiki pages that I need to add a Web Part to. When I go to Site Actions, Edit Page and scroll to the bottom of the Wiki page I can click Add a Web Part and go through the process to get this ...
1
vote
3answers
395 views

AssemblyVersion(“1.0.*”) and Web Parts?

I need two things out of an assembly I'm developing, and they seem to be at odds: Bake the compile time into the version number Offer a web part that won't go stale every time I deploy I'm using ...
1
vote
0answers
33 views

In SharePoint 2007 How To Add WebPart into Review Of Every Wiki Page

I want to add default webpart for every wiki pages review. Currently I need to add webpart for every newly created wiki page. Is there any Solution to solve this. Thanks.
0
votes
1answer
1k views

How do insert HTML into word document?

I have a webpart . I insert InputFormTextBox into webpart. I want save InputFormTextBox.text into word file with formating. How do insert HTML into word document?
0
votes
2answers
724 views

Page viewer webpart, applying style sheets?

Can i apply css style sheet to a page viewer webpart ?
1
vote
2answers
897 views

Hide selection in webpart - .ms-WPHeaderTdSelection {display:none}

Hiding the selection is not working. <style type="text/css"> .ms-WPHeaderTdSelection {display:none} </style> Here is the working code: <style> /*--------Hide the ...
2
votes
1answer
427 views

How to download a dynamically generated file without blocking the page ?

In one of my webpart I have a feature to generate a file dynamically depending on what the users choosed in the view. On my OnClick event handler, I have this code : protected void ...
1
vote
3answers
496 views

Is there a way to have the tool part pane open where the WebPart zone is located?

If you're dealing with a page with many many vertical WebPartZones & WebParts, is there any way to have the ToolPart Pane open next to the WebPart you are editing? Or move up as you scroll up and ...
0
votes
1answer
140 views

Is there a way to set permissions so that a content editor part can be edited but not removed from the page?

I have a client scenario in which users need to be able to edit content within a content editor web part placed on a page via site template, but they need to be prevented from removing the web part ...
3
votes
1answer
414 views

Creating a custom Filter Webpart in SandBox? How-To?

Since a little while now I've been trying to create a custom filter webpart in Sandbox. So far, it seems that all the usual ways to create a custom filter webpart programatically ina farm solution are ...
3
votes
5answers
1k views

Delete a WebPart from Web Part Gallery

I am trying to delete a Web Part from WebPart gallery but I don't see it there. The Web Part is available in the list when I try to add a Web Part in the page. This is the first time I am facing this ...
0
votes
1answer
71 views

can webpart connections use parameters with less than and greater than - SP 2010

Is there a i can use webpart connections(parameters) in SP designer 2010 like this stardateparam <= paramdate => enddate param or i would have to use Querystring params? Also does the date have to ...
0
votes
1answer
1k views

How Do I Get the MySite Images and Full Name of the MySite owner in MOSS 2007 in C#

I am building a simple web part that needs the image that is used from the MySite and the First and Last name of the site owner. I know how to get the current user, I need the name. I am also having ...
0
votes
2answers
3k views

Editing OOB “Add Comment” Post Webpart

I've gotten pretty good at editing OOB XSLT List View parts, but there's one section I'm not really sure how to edit. In my blog, I enabled comments. However, I think the default "Add Comment" web ...
0
votes
1answer
2k views

Use HTML Form WP to post to a new window

We need to post to a search web application and have it display the results in a new window. Can the SharePoint 2010 HTML Form Web Part do this? Any examples? Thanks.
1
vote
2answers
589 views

Disable horizontal scrolling in WebPart

From codebehind I add to my webpart controls _grid=new SPGridView() HtmlGenericControl div = new HtmlGenericControl("div"); div.Attributes.Add("id", "div-datagrid"); ...
0
votes
2answers
2k views

how to add ascx inside another ascx and used in sharepoint visual webpart

I created user control1.ascx and put in controls template folder then add visual webpart in the visual webpart ascx control1.ascx i registered in visual webpart ascx control and the deployee but ...
0
votes
2answers
529 views

SharePoint 2007 - Cannot Find Web Part Page

Situation: Using stsadm -o enumallwebs -includewebparts returns a list of webparts. One of which I want to remove across the entire site. Issue: Using the GUID I can find the webpart Page ID, and ...
1
vote
3answers
1k views

How to create a Connectable Web Part on sharePoint

Is it possible to create a custom connectable web part that passes information to a DataView out-of-the-box SharePoint webpart? I'm not interested in creating a consumer and provider web part as I ...