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
85 views

Moving WPProperties into different categories in custom WebPart

I'm working on a web part that thematically makes sense to have the XSL Link property in a custom category I created Visual Settings that provides new WPProperties for things like the CSS page and ...
0
votes
2answers
340 views

Modify an existing item based on ID

The following code is what is I use to insert new list items: using (SPSite oSPsite = SPContext.Current.Site) ' using (SPWeb oSPWeb = oSPsite.OpenWeb()) ' SPList list = ...
0
votes
1answer
138 views

How do make static controls in sharepoint?

I have a web part with SpGridview control . <SharePoint:SPGridView ID="grid" AllowSorting="true" AllowFiltering="true" CssClass="ms-listviewtable" ClientIDMode="Static" runat="server" ...
0
votes
1answer
677 views

“LinkTitle” column from event list dose not render when added to a repeater control?

I have the following code to render the event Titles (the LinkTitle Column) in a custom web part: <asp:Label ID="Title" runat="server" CssClass="titleStyle" ...
0
votes
3answers
859 views

Best way to add a library web part to an page layout

I'm creating SPWebs based on WebTemplates, which each one have is own, for the welcome page, have modules for the pagelayout and default.aspx page. At this point I'm using a PublishingLayoutPage and ...
0
votes
1answer
216 views

WSS 2.0 - How to pull information from a list and display it on data view webpart?

I have a wss 2.0 environment and want to use dataview webpart to pull information from a list. I also want to do calculations based on a number of items I have on my list. Basically I want to do a ...
1
vote
2answers
2k views

How to change default List View Web Part?

I created a web part for show list item of special list. I want show this web part instead of default list view. How to change default List View Web Part ?
0
votes
1answer
663 views

Can I use a .cs file in a SharePoint WebPart

When creating SharePoint WebParts what is the proper way to go about accessing common methods. For example when developing in .net webforms you can add a .cs file to the App_Code folder and consume ...
0
votes
1answer
313 views

How do I retrieve the “Title (linked to edit)” column from event list to display in my custom web part.

I am creating a visual web part to display the calendar events in the form of an events list with custom css. The web part will be on the home page of my site. Here is what I have right now and it is ...
2
votes
3answers
2k views

The <today/> tag not working in my CAML Query?

I am trying to retrieve the 5 most upcoming (with respect to expiry date) announcement list item "Title's".The query partly works but what it fails to do is include and display todays announcements as ...
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
348 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
955 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
790 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
223 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 ...
4
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
4k 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
506 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
119 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
382 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
296 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
533 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
284 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
831 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
677 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
600 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
251 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
391 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
696 views

Page viewer webpart, applying style sheets?

Can i apply css style sheet to a page viewer webpart ?
1
vote
2answers
880 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
416 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
491 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
138 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 ...