Web parts are ASP.NET controls that can be added to web part zones. They are generally distributed through the deployment of .WSP files. Pre-2013, they could be developed off the hosting server. With 2013, Web Parts for the most part have to be developed on the hosting server for proper library ...

learn more… | top users | synonyms (3)

3
votes
3answers
2k views

Save webpart (html) as PDF file

I have a webpart that is specialized business calculator. Once the user puts in the details of the contract, they need to save the web part (in pdf format) as part of the contract documentation. I ...
2
votes
1answer
752 views

SharePoint Content Query Web Part Group By, expand/contract

On my SharePoint 2007 site, I have a custom list. This list has a column "status" (with values "open" and "closed"). I can create a view on the list that groups by "status", and the view creates nice ...
1
vote
3answers
619 views

Change Doctype for one Site

I'm very new to sharepoint development and I would like to know, if it is possible to change the doctype in SharePoint just for one page (or better for a webpart, I think just for a webpart or is it ...
0
votes
1answer
704 views

JQuery Autocomplete with ashx

I can't make autocomplete work with ashx and the handler is working fine. Here's the scenario: 1- JQuery files are properly referenced 2- ashx is deployed in /layouts and working (got this to work ...
3
votes
1answer
797 views

Custom web part as consumer and provider for other single web part

I have a task to create a custom filter web part (CFWP) for standard List View web part (LVWP). I decided to use a connection framework for this task and designed next concept: LVWP is a provider ...
1
vote
1answer
112 views

Show a webpart on every page automatically

Is it possible to add a web part on every page of a subsite automatically? Can the web part use the same config as the other pages it is one?
4
votes
2answers
6k 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 ...
2
votes
4answers
2k views

Sharepoint SPGridView Data Reneder-SQL

I am tryiny to display a column from SQL Server Databse in Sharepoint Environment. I am using SPGridView for Consistent look and feel. There is stored procedure called "sp_GetMyApplications" which ...
0
votes
1answer
1k views

SharePoint 2010: Set character limit of news webpart without SP Designer?

The SharePoint 2010 news/announcement webpart cuts off messages after 250 characters. I would like to set a higher character limit. All solutions I have found so far involve SharePoint Designer which ...
0
votes
1answer
730 views

Add more levels to the Table of Contents web part?

Is it possible to add more levels in Content -> Levels to show in the OOTB Table of Contents web part? Could this be edited in some file or do I need to build a custom web part in order to get more ...
0
votes
1answer
469 views

Nesting webparts programatically

I have a user requirement to add a webpart inside another; I am creating a tabbed container webpart, inside which the user wishes to add other webparts. How can this be achieved?
1
vote
2answers
2k views

Getting list information into a dropdownlist

I have a list containing fields "FirstName" and "Status". The "Status" field is a dropdown list containing "New" and "Published" options. I intend to code a visual webpart that will display the ...
4
votes
5answers
3k 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 runat=\"server\"&...
2
votes
1answer
2k views

How to make a CAML Query union?

I have a webpart with several CAML Querys that look like this: SPSiteDataQuery qry = new SPSiteDataQuery(); qry.Lists = "<Lists ServerTemplate='104' Hidden='TRUE' />"; qry.Webs = "<Webs ...
1
vote
1answer
768 views

Visual web part properties - override drop down list text

I have an visual web part with custom enumeration property which is rendered as drop-down list. I'd like to localize what is displayed in the list, because it's not very informative for the end user. ...
0
votes
2answers
395 views

SPGridView SQL Server Data..Display

Any example code in C#.net with webparts, how to connect to SQL server and display a table data in SPGridView.
0
votes
1answer
2k views

Localizing ASP markup in webpart issue

In my web part I have an label, which I want to be localized: <asp:Label ID="AppJSTNameLabel" runat="server" Text="<%$Resources:AppListWebPart,NoSelection%>" /> I have mapped Resources ...
4
votes
3answers
473 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; ...
0
votes
1answer
83 views

Sharepoint 2007 - SQL Server Access Error

I have developed a web part and trying to access the SQL Server 2008 from the button click Event in the web part and I get the following error. Request for the permission of type 'System.Data....
2
votes
2answers
1k views

Users image in my site programatically

How to get the users image in my site programatically? I need to show image of the logged-in user in my webpart.
4
votes
1answer
525 views

In SharePoint 2010 how can I add user selected WebParts at run time?

I am quite new to SharePoint and have been given an interesting problem to solve. My users have requested to each have a custom home page that they can customise with ease. The design I have been ...
1
vote
4answers
178 views

Showing url images in webpart

I need to display the images of the url typed in a custom webpart . i.e if i type url name (www.google.com) , atomatically it should display the small logo of google in webpart .Anyone with this idea ?...
0
votes
0answers
429 views

Custom Properties Error for Webpart SP 2007

using System; using System.Runtime.InteropServices; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Serialization; using System.Data; ...
0
votes
1answer
2k views

GridView control - paging with linq. Where is objectDataSource?

I have visual web part with custom logic which retrieves me strongly typed list (not SPList -> .NET list object) which than I bind to gridview which has paging enabled. That works fine. Problem is: ...
0
votes
2answers
8k views

Need a Web part to display user profile of selected user in SharePoint Foundation 2010

I am searching for a Data View web part which can display user profile of selected user in SharePoint foundation 2010. There will be one web part which will contain list of users and another one ...
0
votes
1answer
157 views

Setting SPWeb.AllProperties on WebPart Install

I have a WebPart where I need to set a custom property in SPWeb.AllProperties. How can I on install check to see if a property is set? If it is not set I want to set it. Or is it best just to do this ...
0
votes
1answer
494 views

Landing page forms in SharePoint 2010

I'm working on a new SharePoint public-facing website for my company, and need to replicate a feature of our current site, which we call 'landing pages'. The concept is that my marketing team can ...
0
votes
1answer
242 views

Unusual SQL Server Exception 257 while attempting to rename a View

I've never seen this before. While attempting a routine UI operation -- changing the name of a view (but not changing its file name), I get a generic Sharepoint UI error. But the ULS log shows a more ...
0
votes
1answer
3k views

How to add a webpart using Sharepoint Designer 2010

Is it possible to add a webpart to a page using Sharepoint Designer 2010. I'm trying to modify the newform.aspx page of a list to add a Content Editor Webpart into it. I can't find any way to do that ...
1
vote
0answers
136 views

Updated SharePoint Solution not recongnized

I've modified a minor bug in a User Control of a custom SharePoint solution that was initially deployed on SharePoint 2007 but now it is deployed on SharePoint 2010. I was hoping to just update the ...
0
votes
4answers
328 views

Redirection Error for visitors

I have a custom webpart with spgridview & button.the webpart should be visible to all the users. The gridview populates all items from custom list. When I click button, the page is redirected to ...
1
vote
4answers
2k views

ASP.Net Validators part of Custom control in WebPart

Custom control has 6 buttons in which 5 of them have CausesValidation = false, the one remaining button ( lets calls it as "SUBMIT") which cause validation. Edit: Validators and Submit button are ...
1
vote
1answer
1k views

How to make calendar default to “Expand All” view?

I have a single page on our site that I would like to load in the "Expanded" view (show all tasks without the "Expand All" option that hides anything over the maximum number). So far I've only seen ...
2
votes
2answers
1k views

How to create multiple different connections from a producer web part?

I have twwo webparts, one consumer and one producer. Consumer WebPart takes various ITransformableFilterValues connections. And Producer WebPart generates one ITransformableFilterValues connection. ...
2
votes
1answer
13k views

A Web Part or Web Form Control on this Page cannot be displayed or imported

I'm working on Create a Custom Web Part i'm able to do a build and run the new project in debug mode. However, after trying to add the new web part to the site, I get the following error. "A Web Part ...
1
vote
1answer
1k views

The connection point “filter parameter” on does not allow multiple connections

I have a custom web part which does not allow multiple connection. Scenario : I've added the custom web part on the page, added 2 lists on the same page. Step 1 : I connect List 1 to web part and ...
1
vote
0answers
147 views

Deploy Sharepoint Dashboad page and KPI List to other site

I have a report library in Sharepoint site where i have several dashboard pages. Each of these dashboard pages have kpi and excel web acess web parts in them (only out of box no custom web parts). A ...
9
votes
6answers
4k views

Why would a site admin or designer use a Web Part Page instead of a new sub-site/sub-site collection?

I am a site owner, and up until now, I have always created sub-sites instead of using basic pages or Web Part pages. I would like to understand what advantages Web Part Pages have over just adding a ...
1
vote
2answers
2k views

custom editor web part - disappears other property

Update: protected override void CreateChildControls() { // autopostback ddlTopic = new DropDownList { CssClass = "...
1
vote
0answers
65 views

Hide Certain Fields in KPI Detail Web Part

Specifically i want to hide Workbook and Value Cell in a KPI Details Webpart ad prevent users from drilling down to the workbook. Any idea how i can do this using out of the box ?
0
votes
1answer
888 views

Table of Content Web Part SP2010

I'm currently designing a site in 2010 version for our team. They are not very comfortable using SharePoint and since migrated to version 2010 they are struggling with the basic navigation, so I would ...
2
votes
2answers
751 views

Edit a webpart in SharePoint

Someone deployed a webpart to our site that left and that webpart changed the globalbreadcrumb banner of the sitecollection. The webpart is needed to be used, but I want to remove the code that is ...
0
votes
2answers
3k views

How do I resolve the “Unable to display this web part” error?

Our Sharepoint Portal Server 2003 home page has three data view web parts that display different lists. Starting Saturday, all three web parts starting returning this error: Unable to display ...
4
votes
2answers
3k views

Structuring wiki pages with templates in SharePoint 2007

I need to create a custom template for SharePoint 2007 wiki pages. With ability to add multiple web parts zones on Wiki Page. Is it possible to do that, as I have read from online that wiki pages in ...
1
vote
2answers
2k views

Sharepoint 2010 Custom Properties via WebPart UserControl

I have a weather UserControl (defaulting to the headquarters location) . I have removed the ability to "Edit Web Part" because of branding and not wanting to have to train users on how to work the "...
0
votes
3answers
934 views

Cascading DropDownList in Custom Editor Web Part using SharePoint 2010

Does anybody know how to achieve a cascading dropdownlist in an editor web part?
1
vote
0answers
1k views

File not found on WebPart Deployment

I followed the Instructions on msdn and also this one here but unfortunatley nothing seems to work. I've built a custom webpart and packaged it into a .wsp file since i'm trying to import this ...
0
votes
2answers
444 views

Sharepoint Custom WebPart 2007- Target Audience Missing

I have created a site in SP 2007 and its of type Teamsite. I have created a webpart and I want it to target for a group and unfortunately I cannot see target Audience Text box for that Webpart, What ...
0
votes
1answer
367 views

Sharepoint form prepends WPQ2 to form names

I have a custom form added as a webpart that sends to another site. Unfortunately the name attributes of each of my fields is getting prepended with WPQ2 automatically. for example: <input type="...
6
votes
2answers
624 views

Weekly update from the boss

I am a site owner for a military unit (we are going heavily to SharePoint.) We have SharePoint 2007 installed, and have no flexibility to add more web parts. We also have limited ability to ...