Web parts are are the building blocks of Microsoft SharePoint web pages.
Questions tagged [web-parts]
1693 questions
3
votes
1 answer
Accessing web.config from Sharepoint web part
I have a VS 2008 web parts project - in this project is a web.config file:
something like this:
…

user360943
- 109
- 2
- 9
3
votes
1 answer
My webpart event handling does not fire in SharePoint
I started coding something complicated and then realized my event handlers don't work, so I super simplified a button with an event handler. Please see the code below and maybe you can tell me why it doesn't fire?
using System;
using…

Pertinent Info
- 135
- 4
- 15
3
votes
1 answer
Error deploying visual web part to SharePoint 2013 (Activate Features)
I'm trying to deploy a simple web part to SharePoint 2013 using Visual Studio 2013 and I am getting the following error:
Error occurred in deployment step 'Activate Features': Feature with Id
'....' is not installed in this farm, and cannot be…

Naner
- 1,292
- 6
- 25
- 43
3
votes
1 answer
trust set to Full, but web part still causes SecurityException
I've got a web part that accesses the SP object model, packaged in an assembly which is signed and deployed to the GAC. The web.config is set for "Full" trust, and yet my web part throws a SecurityException. The offending lines of…

Ben Collins
- 20,538
- 18
- 127
- 187
3
votes
1 answer
SharePoint 2013 custom web part not visible
I'm trying to add a custom web part to a site collection in SharePoint 2013 (using VS2013). I deployed the web part with Visual Studio. The web part is actived and visible in SharePoint, except on the Site Collection page. I don't have a "custom"…

user3478148
- 433
- 1
- 8
- 26
3
votes
2 answers
How to add a web part page to a site definition?
I have to create a site definition for a client that must contain pre-defined web part pages. I can create the web part pages but am at a loss when it comes to attaching them to the site on creation.
I know web part pages created through SharePoint…

knight0323
- 738
- 2
- 6
- 12
3
votes
1 answer
Add Custom Property in WebPart Editor Zone
I have webparts which display the content.
Using Webpart Editor zone I need to select display style.
By Selecting the Style i need the data to be displayed either in Grid or List or Rolling (from Dropdownlist).
How can i add custom property in…

Amarnath Balasubramanian
- 9,300
- 8
- 34
- 62
3
votes
6 answers
ASP.NET Web Parts: Drag and Drop Support in Non-IE Browsers
I have been using web parts on my site since ASP.NET 2.0 came out. Dragging and dropping web parts works great in Internet Explorer, but it doesn't work at all in Firefox, Chrome, or Safari. I recently upgraded the site to ASP.NET 3.5 SP1, but I am…

Kevin Albrecht
- 6,974
- 7
- 44
- 56
3
votes
1 answer
Sharepoint 2010. Webpart form filter applied to listview doesn't clear
I have a listview on a page that displays several records. Every record has "ID" column (1,2,3,4 ... ). I'd like to let user filter listview with text field. User types "ID" value he/she searches, clicks "find" button and listview should display the…

user149691
- 587
- 1
- 5
- 19
3
votes
7 answers
Accessing a remote file with a SharePoint Web Part
I recently built a program that parses a remote file from \some_server\c$\directory\file.xls and it works fine on my local machine as just a normal aspx page.
Then I put the program into web part
form on my VM SharePoint server and I
get this…

naspinski
- 34,020
- 36
- 111
- 167
3
votes
0 answers
Visual studio 2012 SharePoint 2013 solution error: "user-defined conversions to or from a base class are not allowed"
So I was creating a SharePoint 2013 visual web part on Visual Studio 2012 and came to this problem. Visual Studio automatically creates WebPartUserControl.ascx.cs and WebPartUserControl.ascx.g.cs. the WebPartUserControl.ascx.g.cs is generated…

Gintas K
- 1,438
- 3
- 18
- 38
3
votes
1 answer
Cannot move Webparts
I have a page in a sharepoint site. When it is edited (Site Actions -> Edit page), there are various webparts in different webpart zones available. I drag and drop some webparts from one webpart zone to another. This happens perfectly in some…

user2622113
- 31
- 1
3
votes
2 answers
Controls.Remove() does not work after CreateChildControls?
I am developing a SharePoint 2010 non-visual WebPart which displays some kind of data in a big table.
The table rows should be filtered by selecting a filter criterium from a DropDownList which is part of the webpart.
The OnSelectedIndexChanged…

elsni
- 1,953
- 2
- 17
- 35
3
votes
2 answers
create visual web part in sharepoint connect to a list
I want to create a visual web part in share point 2010 can read and write data form a share point list. how can I do it?
I programing with vs2010 on a share point server.

hussain
- 31
- 1
- 6
3
votes
0 answers
How to change a webpart list view to another list view when a custom button is clicked on a wiki page?
I created a list and setup 3 views using "filters" in Sharepoint 2010. On the main wiki page, I created a custom dataview that brought the list into a wiki page and the view was the default view. I have created 3 img buttons and placed them into…

CSM
- 31
- 3