Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [custom-web-parts]

This Tag is use for Custom Web Parts of SharePoint

0
votes
2answers
35 views

Pass HTML text from webpart to Application Page (.aspx) SharePoint

I have placed a Rich Textbox in SharePoint webpart & on Button click I want to Print the text same as in the format entered by the user which will have certain HTML tags. For Printing this, I ...
0
votes
0answers
10 views

AssetUrlSelector is not showing contents from suggested site collection

Working in SharePoint 2016 environment, I have place an AssetUrlselector control in a custom webpart. The control is working fine for the site collection in which the webpart is deployed and control ...
1
vote
0answers
58 views

Webpart randomly stopped working

We have a webpart running on SharePoint 2010 that displays our latest news that has been in use for at least 3 years. As of yesterday, it stopped working. It displays the webpart with title and the ...
1
vote
0answers
79 views

Recommended .gitignore for sharepoint solutions [closed]

I've inherited a heavily customized SharePoint 2013 environment that makes heavy use of farm solutions. I'm trying to implement Git as a source control for our environment so that we can have better ...
0
votes
1answer
38 views

How to implement Auto-fill behavior for search in custom Web Part in SharePoint

I am trying to implement Auto-fill behavior for search in custom Web Part in SharePoint here I have to read data either from SharePoint list or SQL Server database table. Here I can implement these ...
1
vote
1answer
292 views

How to call custom web part's method in Ajax call?

He I am trying to call one of my method in web part using ajax call but there I am getting error as Test2.aspx/ReadData Failed to load resource: the server responded with a status of 500 (Internal ...
1
vote
2answers
205 views

SharePoint 2016 Custom Web Part Issue

I have developed several custom web parts for a new SharePoint instance. When I leave the web parts as a Sandbox Solution and deploy them to the server they display and function as intended for users ...
1
vote
1answer
803 views

Connect to SQL Database from Custom WebPart

I am trying to create a custom web part in SharePoint 2013 that connects to a SQL 2012 database. I have gone as far as I can with the SharePoint BDC to connect to the external data. I am not able to ...
6
votes
1answer
799 views

Best Way to create Custom Poll Web part in sharepoint 2013?

I need to create a custom poll web part, My requirement is User able to responds the poll, the admin needs to create a poll question, He needs options to choose the poll options type (checkbox, radio ...
0
votes
3answers
116 views

How to maintain different session in different tabs?

We are working on a custom web part in which data is fetched from different SharePoint lists in to a static datatable based on the name of the SharePoint list . But when i open same web part , from ...
1
vote
0answers
128 views

How to filter a calendar events in list view based on moth and weak view in calendar view?

I need to filter a Calendar list view based on month and week view, I mean I will add calendar view web part first then I will add my custom web part to show the list view, Think is list view need to ...
1
vote
1answer
54 views

Best way to add custom webpart

What is the best way to add a custom webpart to a sharepoint default page(i.e list page like NewPost.aspx) and/or into the webpart gallery programmatically without directly deploying from Visual ...
2
votes
2answers
2k views

How to customize the calendar list programmatically in sharepoint 2013?

I need to Customize the Calendar list, So I planned to develop it Custom web part for changing the look and feel, functionality, etc, So please suggest me some idea to customize add event page look ...
0
votes
1answer
150 views

Use Cascading Dropdowns in Custom Editor Part

How would I set up a cascading dropdown in my custom web part's editor part so that when I, for instance, choose a list from the first dropdown the second dropdown would be populated with a list of ...
3
votes
2answers
136 views

Is any alternative way to implement custom webpart(coding) in sharepoint online?

Microsoft has Removing Code-Based Sandbox Solutions in SharePoint Online then how to deploy custom webpart Is any alternative way?
1
vote
1answer
49 views

How to detect page properties in Custom Webpart

Is there a way in the server side .NET code of a custom built web part to detect and use the properties of the page the web part will be deployed on. So page library has custom column (property) "x" ...
1
vote
1answer
46 views

Web Part with a Custom Tool Part error "Sorry this site is not shared with you”

I created Web Part with Custom Properties My issue is that only the admin profile can edit the properties Users with contributerole can't edit the webpart. He gets this error : Sorry this site is ...
0
votes
1answer
84 views

The Page You Selected Contains a List that Does Not Exist in Custom Web Part

I'm developing a web part in which the Announcements list of a subsite will be displayed on its parent. Here's what I have so far: XsltListViewWebPart XLV = new XsltListViewWebPart(); SPWeb web1 = ...
11
votes
1answer
6k views

Cannot uninstall the LanguagePack 0 because it is not deployed

I'm trying to run the following PS command on a SharePoint 2010 Foundation Farm: Update-SPSolution -Identity testwebpart.wsp -LiteralPath C:\ChrisProjects\TestWebPart\TestWebPart\TestWebPart\bin\...
1
vote
1answer
1k views

Populate Custom Web Part Property from List

I have a custom web part (Contact Info) with a property (Topic). The topic is a drop down list (ie behind the scenes its an enum type. What I would like is for the values of this dropdown property to ...
2
votes
0answers
98 views

Filter Drop-down values based on logged user

I should create a drop down box to display hosted-app part, based on the selected value from drop down box. Also I need to filter the drop down values based on logged user. And this need to be done ...
0
votes
1answer
249 views

Custom Web Part in fixed height div

I am developing a web part and it loads correctly, however when it is set to a fixed height a DIV is appearing before my rendered content with a height set that is the same as the fixed height I set ...
0
votes
1answer
38 views

Access denied accessing web part

We have created a custom web part that sends e-mail. A page is created, the web part is added on the page, and the page is published by an administrator. The issue now is that all other users have ...
1
vote
0answers
74 views

Programmatically created SPWebApplication's WebParts not registered as safe

I am having a frustrating issue with a programmatically created web application in which a programmatically deployed solution's web parts are not registered as safe when adding to a programmatically ...
-1
votes
2answers
549 views

How to restrict script editor to make changes to only one of two list web parts on a page

I have two list web parts on a page. When I add some css code to the script editor webpart, it makes changes to both lists, but I want to make changes only one list. What do I need to do in order for ...
1
vote
0answers
366 views

FormContext.FormMode == DISPLAY after calling Edit Item in custom list

In a custom webpart we check on PageLoad the SPContext.Current.FormContext.FormMode to show different additional controls on edit and display mode. If the list is created manually everything works ...
2
votes
1answer
1k views

remove custom master page for modal popup

I am using visual studio 2013 for custom webparts and I have a page(call it X.aspx) which has a link that opens a modal popup(body only page) and has a custom webpart in it and it is referencing site ...
0
votes
1answer
2k views

Farm solution deployed to my web application , is not available to new site collections

I have a .wsp Farm solution deployed to my web applications, as follow:- I have created this solution using VS .Now inside my current web application I have 2 site collections. Old site collection ...
0
votes
2answers
329 views

Javascript isn't linking in IE for a webpart

I'm adding a web part(farm solution) into SharePoint 2013, the problem that I am receiving is that any scripting link I add(specifically jquery in this example), doesn't seem to be found by internet ...
0
votes
2answers
6k views

sharepoint 2010 - 2013 web parts migraiton: jQuery is undefined error

I posted this in the general Stack overflow site but this seems like a better place to post a sharepoint question. I am trying to move a custom web app (contacts list) from sharepoint 2010 to ...
0
votes
1answer
1k views

Custom Webpart With checkbox

I Created Webpart Page in SPD and they saved inside site Pages then I chose Empty Date View.now I have Data list with some columns but they are not like Listview webpart, there is no Checkbox on each ...
3
votes
2answers
2k views

How to load custom webparts in site page asynchronously in sharepoint 2010

In home page of my site i have some custom webparts. so home page is taking much time to load page,I want to load custom webparts asynchronously how can i do this. Does anyone have any idea.
0
votes
1answer
173 views

Xsl when-otherwise statement

I have the following xsl snippet from a standard web part that gets its data (image, header, text) from the Pages library, specifically the part that checks the image: <xsl:choose> <xsl:...
3
votes
1answer
1k views

Add webpart to application page programatically

I want to add a webpart on page load to the application page, I want to deal with the webpart like any other control, like adding a label in the page load function, but I want to view this webpart ...
0
votes
1answer
79 views

Send Row Data to Dialog Box for Editing

I have created a custom ribbon button in SharePoint 2013 which enables when 2 or more files are selected and opens a dialog box. Within this dialog box, I would like to open a custom page which ...
0
votes
3answers
8k views

Custom web part in a modal dialog pop-up

Can we display a custom web part (developed in visual studio 2010) in a modal dialog pop-up? If yes then how can we do that... any tutorials or article? Thanks!
5
votes
1answer
7k views

Run Sharepoint timer job programatically using RunNow() using account having non admin rights

I have a custom timer job which is scheduled to run during specific time period. I want to give a Run Now functionality using button click from custom sharepoint webpart. If i run timer job using a ...
0
votes
1answer
425 views

Control View based on Current User Role

I am trying to limit visibility to buttons and ability on a user control based on Role on a SharePoint 2010 Site. I get the user from the following code line SPContext.Current.Web.CurrentUser Then ...
1
vote
1answer
516 views

Exception when deleting webpart Microsoft.SharePoint.WebPartPages.WebPartPageUserException

I have been looking for any leads on this direction on the web and most of the issues I have found is when they try to add a webpart but I am running across the issue where I am getting an exception ...
0
votes
2answers
3k views

How to format Content Query Webpart

I have 2 CQWP's in my Welcome Page for a document set. By default, they look like this: I was hoping there were an easy way I could either make the Names of the webparts Bold or Highlighted, like so:...
0
votes
1answer
549 views

Problem with Adding Custom Web Part

I'm new at developing an web part with Visual Studio. I want a weather web part. I created an empty SP 2013 Project, added Web Part item. But when I deploy it and add the custom webpart into my site. ...
1
vote
2answers
481 views

Missing Site Collection Feature Permission prevents custom web parts from being added to a page

I created a custom web part hello world and deployed it to a local SharePoint 2010 (Developer laptop) successfully. However, when I try to add the web part to a page, it errors off. The error in the ...
2
votes
1answer
117 views

How to synchronize Google Calender and SharePoint Calender ?

I am using SharePoint 2010 and I wants to create web part that synchronize My Google Calender and SharePoint Calender in both way Google to SharePoint and SharePoint to Google. I need to create a web-...
0
votes
1answer
2k views

In SharePoint 2013, How do I use the person field (people picker) in a custom web part?

Sharepoint 2013 gives a pop up when the cursor is kept on top of a users name ( the pop up allows to connect to email, lync, etc) I need to add that field in my custom webpart... Is there any way ?
2
votes
3answers
994 views

Steps to Deploy multiple webparts with one feature

(SharePoint 2010) I have created 4 webparts each in their own solutions and they work great. How could I add each webpart to an empty solution and deploy them as one feature & have each web-part ...
0
votes
0answers
761 views

Bind parameters to my custom reportviewerwebpart and refresh it

I'll try to explain my problem in the easiest way I can, since even for me it is difficult to understand. I've created a custom web part in which I have two columns: a datalist and a few buttons on ...
5
votes
3answers
5k views

How to create Visual WebPart in sandbox solution (Office 365)?

I am using SharePoint online(Office 365). for office 365 it is necessary to create sandbox solution but in sandbox solution it is not possible to create visual web part. is there any way to create ...
1
vote
3answers
4k views

how to get the context of current document set in a custom web part placed on document set welcome page?

I want to create a web part to place on a document set web part. How would I get the context of the document set and the documents within the set from within the web part? thx