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)

2
votes
1answer
214 views

Listview in a webpart: popup only appear once

The problem I am having a problem, with a Listview that gets included in a Webpart. When I am trying to make a, action on a list item, I get the dropdown. If I let et close and try to open it again ...
0
votes
3answers
1k views

What set for ASP.NET Membership provider name in forms based authentication?

I want created a custom login page . I set Claims Based Authentication my site . When i Enable Forms Based Authentication (FBA) , what value set for : ASP.NET Membership provider name ASP.NET Role ...
1
vote
1answer
649 views

Creating and Deploying a Custom Login Page for SharePoint 2010

I want created a custom login page . I use this link for created custom login . But when i build the solution,don't create a folder inside .\Microsoft Shared\web server ...
3
votes
1answer
508 views

How do modify active directory user properties?

I use this code for find users in AD SearchResultCollection results = null; try { SPSecurity.RunWithElevatedPrivileges(delegate() { ...
0
votes
2answers
1k views

Forbidden - 403 error when accessing a page containing a visual web part

I have restored my SharePoint 2010 site to a new web application. My site collection has two visual web parts on two different pages. I have 10 users who access my site. After restoring my site to a ...
0
votes
1answer
883 views

Changing all webpart's Zone ID on a Page programmatically

I Want to add all the webparts already exists on a Page with different zoneIDs into "Top" zone using c#. I know i can use this code of line SPLimitedWebPartManager wpManger = ...
2
votes
3answers
652 views

Can a web part prevent master page jQuery from executing properly?

I'm including jQuery and a custom .js file into the master page of my SharePoint 2010 site. In the $(document).ready() function, I'm setting a live event handler on an element in the header of the ...
2
votes
0answers
120 views

OWA webpart view

I added owa webpart in 2010 but I want the view to look like following like we had in sp 2003. How is it possible as there are no configuration for it in web-part? Please suggest. 2003 look 2010 ...
4
votes
2answers
3k views

Provision XSLTListViewWebPart with <AllUsersWebPart> or <View> and customize the XslLink

I've created some custom List Definitions (aka List Templates) and am provisioning List Instances of them into my site. I am then provisioning Pages (Wiki/WebPartPages) that refer to the lists/views ...
0
votes
2answers
341 views

Updating Custom XML property of a webpart while adding it to a webpage

I followed this tutorial to make a tabzone webpart. if I want to manually add it to a page it works perfectly, but if I try to add it programmatically, it gives me out of index exception, which is ...
0
votes
1answer
568 views

Specify character encoding in webpart

really simple: I have a visual webpart with danish letters (æøå) which is malformed when deployed - most likely as a result of the wrong characterset encoding. How would I go about specifying this in ...
0
votes
2answers
959 views

How to get custom action to a SharePoint list actions menu for a specific list or content type?

I add custom action to a sharepoint list actios menu for all list . I want get custom actions that define for a special list in VS. How to get custom action ?
0
votes
1answer
594 views

Using search web-part to search a custom list's topic questions

How can I use the search web part to look through a custom list and display the relevant topics from that list to the user?
0
votes
2answers
131 views

lost reference to all webparts after site creation using template

I have taken backup of http://mysite:300/ site and restored it in some other server say http://newserver:300/. when I have created subsite using template already exist, site creation is successfull ...
0
votes
3answers
198 views

Web part giving 401 on public facing site

I have created a Blog in my site and change its layout. I'm using a webpart which is giving 401 error on public facing site. My Code is: public void CustomBlogLayout() { SPSite thisSite = ...
1
vote
1answer
1k views

AJAX in Sharepoint 2010 Web Parts

I want to use HighCharts in Sharepoint Web Parts. So, I put necessary JS files in 14 hive folder and everything works fine. This is my ScriptLink Tag: <SharePoint:ScriptLink ID="ScriptLink1" ...
0
votes
1answer
179 views

Dynamic web part sourced from another web part.

We have a webpart (webpartA) which is updated manually, and we have another webpart (webpartB). What I want to have is, when webpartA is updated, I want webpartB to be updated automatically. Is there ...
1
vote
1answer
358 views

How to insert picture into your Word document?

I have a Document Library with column type Hyperlink or Picture (Signature). How to insert (Signature) into your Word document? I find this link for insert Picture into word. I problem is : How do ...
0
votes
1answer
78 views

Auto Insert new field into SP List on page PostBack

I've just created a new webpart. I'm a beginning on Sp Word. I built a new WP the get some data from textBox and put it into a content list. But every time I do Refresh a new void item is inserted ...
0
votes
2answers
246 views

increase List threshold or Custom Filter?

I have a list over 200,000 items in it. It's on normal threshold (2,000 items per view). Users want large threshold but there is price for that. SQL traveling/transaction, server overhead and the ...
2
votes
1answer
583 views

Can't save webpart after editing with PowerShell

I'm using the code below to edit the image in a webpart: $webPartCollection = $web.GetWebPartCollection("default.aspx","Shared") $imagePart = $webPartCollection | Where-Object { $_.Title -eq "Site ...
0
votes
1answer
380 views

bind item id to custom webpart in dispform.aspx

I've created a custom webpart that shows me some details of a dossier. I've added a DossierID property like this: public Guid DossierId { get; set; } This identifies the dossier from which I want ...
0
votes
1answer
111 views

People Search on root site

I am trying to get people search setup on our root site, but i'm not sure how to link the people search box webpart to the People search core results web part on the same page. When I drop both parts ...
1
vote
2answers
1k views

Adding url to the hyperlink field in SpGridView

I have a dynamic Spgridview. I add column in page load. I use this code for add Hyperlinkfield in SPFieldType.URL : string[] url = new string[1]; url[0] = field.InternalName; HyperLinkField link = ...
2
votes
1answer
184 views

How can replace the XsltListViewWebPart with a new WebPart?

The list view web part are used by SharePoint to list and library data. When a new list is created, the web part for the list is also created automatically.List view web parts can show one view at a ...
3
votes
5answers
10k views

How do I Modify Contents of a WSP File?

I've been provided a WSP file that contains a webpart created by another developer. I have been requested to make modifications to the webpart and repackage as a WSP file again. What steps must be ...
2
votes
1answer
4k views

Creating a searchable FAQ section in sharepoint 2010

How can i create a FAQ section that I can use a basic search web part to search through the FAQ and display the most relevant results. I am new to sharepoint and need some guidance, thanks.
0
votes
1answer
63 views

web part view without the selection button

I am trying get a look and feel like central admin resource list view wp. I created exactly same type list and populated. But my list view does not have bullets and when I hover over the link it gives ...
0
votes
3answers
3k views

Register and run javascript on load in a sandboxed webpart

Got a placed called 'SiteAssets/test.js' with the function test(). I've created a nonvisual webpart, would like the script via the cs file and then run the function during the loading of the webpart. ...
0
votes
1answer
1k views

How do I update/refresh a web part using an AJAX Update panel every 5 or 10 minutes?

I have a news and announcement web part that I would liek to refresh every 5 or 10 minutes so users get the latest information. I have a bunch of asp controls within an update panel's contenttemplate. ...
0
votes
3answers
2k views

SPContext.Current.Web.CurrentUser returns wrong user

This is a repeat of a similar question which was never answered so I wanted to give it a fresh start. In fact it looks like some SPDoctor closed it with very odd comments. Anyway; I have a web part ...
2
votes
1answer
11k views

Calling the SP.UI.ModalDialog.showModalDialog method

My SharePoint solution has a userControl that Register a js block string getJS(string title, string htmlContent) { return (string.Format(@" ExecuteOrDelayUntilScriptLoaded(function ...
0
votes
2answers
2k views

Adding row values to a specific column in a datatable?

I am tryin to retrieve the url of image attachments from a OOTB announcements list and add it to a datatable column I created named "Images". The respective image control in my web part displays the ...
0
votes
1answer
149 views

how can I retrieve an USERID from a web site user, when it adds a new FILE on SP?

I'm building a WebServices tha allows user from a social network to add a new FILE in a DoCLibrary. This WebServices' WSDl ,was built with no "USERID" field . Every time that someone add a new file ...
0
votes
2answers
217 views

Does webpart property validation code execute every page load

I have a custom webpart with custom webpart property. I have created a complex validation in the property. My question is, does this validation execute on every page load or happens only when ...
0
votes
3answers
287 views

Tool to get SPList in webpart using tool

I want to get SPList data in webpart just passing name in tool. Anybody have any idea about that?Please Suggest me.
0
votes
1answer
170 views

contribute users have error while accessing silvelright web part

I also have the same problem.. when i open silverlight web part in fullcontrol user login, it works fine.. but.. contribute users login means getting error. as my application is treeview child ...
0
votes
1answer
246 views

Don't display template field of SPGridView in filtering!

I have a web part with SPGridView. I defined TemplateField for SPGridView. TemplateField tmp = new TemplateField(); tmp.HeaderText = field.Title; tmp.ItemTemplate = new ...
0
votes
1answer
83 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
324 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
133 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
640 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
834 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
198 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
1k 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
628 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
305 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
4k 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
281 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 ...