Stack Exchange Network

Stack Exchange network consists of 174 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
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [visual-web-part]

Visual Web Part is a Web Part built using a User Control (.ascx)

0
votes
1answer
18 views

Call JavaScript dynamically on Visual Web Part

I currently have a visual web part that displays clocks from different time zones, using the jClocksGMT library as provided here in the .ascx file. However, instead of hardcoding the timezones I want ...
1
vote
1answer
28 views

SharePoint 2016 - Issue deploying solution

So, our company is using SharePoint 2016 on premise and previously I have deployed a few custom solutions to it before and they work correctly. Now however, I am trying to create/deploy a visual web ...
1
vote
2answers
48 views

Solution Option is missing in Sharepoint Online

I have created the trial site on Office 365. I have created a Test Site in SharePoint Online. Now I want to deploy custom web parts on SharePoint Online refer to the following link: https://...
1
vote
1answer
45 views

How to add a GridView to a Visual Web Part?

I'm new to SharePoint and am developing a simple World Clock Visual Web Part, following this blogpost from SharePoint Hero. In the blogpost the instructor describes adding a GridView to the Web Part, ...
0
votes
0answers
28 views

SPFX: Custom action to move bulk document from one library to another and adding metadata to these files

My scenario: I need to be able to bulk move files from one library to another and also bulk add metadata to those newly move files. I thinking of creating an spfx/react application or any method is ...
0
votes
1answer
26 views

Visual Web Part cannot be found or is not registered as safe, and isn't being added to web.config

I'm new to SharePoint development, and I'm making a basic Visual Web Part with Visual Studio 2015, which currently only displays a header. It successfully builds and deploys, however the SharePoint ...
1
vote
1answer
32 views

Cannot initialize SharePoint project item whenever a project is reopened

I'm developing a SharePoint Visual Web Part for SharePoint 2016 with Visual Studio 2015. When I create a new web part all the relevant extensions initialize correctly. However, when I close Visual ...
0
votes
1answer
22 views

Web Parts auto-adjust to web part zone

We have developed some custom web parts in SharePoint 2016. We have developed these web parts as Visual Web Parts but with JavaScript/jQuery/REST API/PNP JS. We have used bootstrap for responsive ...
0
votes
1answer
24 views

Install or Update Visual Web Part in SharePoint

I have developed a custom visual web part by using ASP.NET. However, The web part has produced in another server which contains visual studio. I have the .wsp file and I know how to use the SharePoint ...
0
votes
1answer
48 views

SP13 - How to Get the Selected Date/Time within SharePoint Calendar

I Create Visual Web Part for SharePoint Calendar (New form). I have needs to retrieve clicked date in sharepoint calendar. How to do this: Thank you previusly!
0
votes
0answers
9 views

Visual Web Part Design View ERROR Creating Control

i'm getting an error trying to access "Design View", it shows this: Does anyone know how to fix it? Also when try to running, it fails due to the current state of the object
0
votes
2answers
52 views

How do I determine a GenericList type?

I'm working on a site, where a web part I'm building takes the name of a custom list type as a property when editing the web part settings. The "List" that this visual web-part is designed to display,...
0
votes
1answer
29 views

how to to display and search between date sharepoint document library in web part

hi every one, i am trying to display all document library item in gridview using web part with a linkFileName column. below is my code. try { using (ClientContext context = new ...
0
votes
1answer
29 views

User Change Event in ASP.Net

We have developed a visual web part in asp.net. With using SPContext.Current.Web.CurrentUser.ID property, we control who is current user. In SharePoint, it is possible to change current user and this ...
0
votes
0answers
25 views

What internally happen when you add webpart on sharepoint page

We have list of webpart in solution either its custom or out of box. we have .aspx file in template folder, dll in GAC and .webpart reference in solution gallery. But when you add webpart on the page ...
2
votes
1answer
48 views

Minimum Requirements for Azure SharePoint Development VM

I'm interested in developing SharePoint Visual Web Parts in Visual Studio but don't have an instance of SharePoint Server running anywhere. Visual Studio points me to this page, which suggests a ...
0
votes
1answer
24 views

Find asp:table from visual web part

I've created a basic Visual Web Part, in VS 2017. When I Deploy it to my SharePoint server(2013) It works. But I'm not sure how to find my table so I can add/remove values in the table. My ...
0
votes
0answers
11 views

Show the SharePoint Blog Site ribbon in custom web part?

I need to integrate the SharePoint OOTB blog site ribbon controls into visual web part. Please suggest some idea to achieve this.
1
vote
1answer
675 views

How to get webPart XML with powershell from SharePoint WebPart Gallery

I want to get web part XML from SharePoint Web Parts Gallery(not locally) for add webpart into a List page. This is my code: $spWeb = Get-SPWeb $webURL $spSiteCollection = Get-SPWeb -Identity $...
2
votes
2answers
2k views

How to add webPart to Page with PowerShell from WebPart Gallery

I want to get my Custom WebPart by name and add into a Page with PowerShell from (Web part gallery): --> Edit Page --> Insert --> Web Part --> Custom WebParts in image are added from Custom ...
0
votes
1answer
23 views

Can we create a document with user having read permission only? C# SP2016

I am working with Visual WebPart in SP2016. I have created Farm Solution. I have a user TestUserRead. This user have read permission to the site. Can I create a document with TestUserRead using ...
0
votes
1answer
68 views

Asynchronous Visual Web Part without ASP Update Panel

I want to create the Asynchronous Visual Web Part(Which is not affecting the page load) without using ASP:UpdatePanel. Any idea how to achieve this??
1
vote
2answers
113 views

SharePoint 2016 Visual Web Part - error importing webpart when compiling, am I missing something simple?

I'm trying to just build a super simple web part for on-prem, I go into VS 2017 and I select SharePoint 2016 - Visual Web Part, I don't modify any of the code and then I just compile and deploy and ...
3
votes
1answer
48 views

Read text file entry in visual web part (C#)

I have a text file with URL & active entry URL Active Http:// 0 http:// 1 I want to convert the file to a SharePoint list in visual web part
2
votes
0answers
52 views

Unable to create custom Web part properties for custom content search web part in sharepoint 2013?

I tried to create custom web properties for custom content search web part Extended CSWPby using [WebBrowsable(true), WebDisplayName("Page Title"), WebDescription("Title displayed on the page"), ...
2
votes
2answers
72 views

show different navigation for internal and external users

my scenario: my internal users navigation shows up a list of companies(document library) which they can use without any restrictions. But for my external users only a certain company is shared to them ...
2
votes
1answer
38 views

Show hide User Controls in a webpart or switch between webparts

How we can achieve below scenario in SharePoint 2013,I am confused where to start: I have webpart which will do login functionality based on list, once user Logged success I need to show a List Items(...
3
votes
2answers
220 views

SP16 On-Premise - SPFx web parts or Classic web Parts?

My company has need to migrate web parts from SP07 to SP16 On-Premise. It is clear that all the logic from the old web parts will be written from the beginning. My question is what decision we ...
0
votes
0answers
79 views

visual web part with Web services

I have come accross a scenario wherein i have to debug an resolve a issue in a visual web part. I checked the code of web part and came to know that a web service (asmx) has been used in it. I tried ...
0
votes
0answers
430 views

Unable to upload large files in sharepoint 2013?

I was trying to upload 100mb file but i am not able to upload in document library.I got the below error. How to fix this issue ? The maximum file size on the sharepoint web application is 250MB. ...
5
votes
1answer
116 views

When developing web parts, which is better server context or client context?

When developing a webpart for deployment as a farm solution is it better to use the Sharepoint server context Microsoft.Sharepoint? Or is it a better practice to use the Microsoft.Sharepoint.Client ...
1
vote
0answers
16 views

Can't get sandboxed 2013 web part to emit client side JS for validation

I am developing a sandboxed feature for 2013 that includes several custom aspx pages, each with its own sandboxed web part through the SPUserCodeWebPart control. This project has had a long and ...
1
vote
0answers
210 views

How to add a Site Feed(Newsfeed) OOTB web part to one of the tab in a JQuery tabbed UI?

How do I show a Newsfeed webpart in one of the tab in a Custom Tabbed Sandbox Visual Webpart? I've an html UI using JQuery UI tab. Some of the tabs contain static html, I want to add a new tab say "...
0
votes
1answer
280 views

Webpart custom property is not saving in Sharepoint 2013

My custom property is declared like every example out there: [WebBrowsable(true)] [WebDisplayName("Group By Date")] [Description("Group Articles by date")] [Personalizable(...
1
vote
0answers
82 views

Best way to create a custom form as survey question creation?

I need to create a custom question creation form as Survey question creation in SharePoint 2013 survey list. In survey list we can create a question, and we ca choose the options type(Radio, multi ...
1
vote
1answer
108 views

Get last modified file from a sub site using JSOM

I have a navigation web part which displays the subsites as tiles which has the name of the subsite and last modified date information. These subsites can have multiple document libraries, lists(...
5
votes
1answer
220 views

SPCalendarView not working properly in Sharepoint 2013

I have Created a Custom Calendar webpart using SPCalendarView type. After adding this webpart to my page it is not displaying any events and the navigation buttons(two arrow buttons) for changing ...
1
vote
2answers
431 views

Get names from people picker and send mail to them by C#

I want to send mail to selected user in people picker control and CC to the his manager. Able to send the email to user. But how to get his manager email Id in C# Web part? Basically How to distribute ...
2
votes
2answers
140 views

SP13 - Deploy and debugging stop work for other developers in project

My SharePoint team (back-end and front-end developers) work on project. Solutions are Visual Web Parts for SharePoint 2013. Where one developer deploy her solution or debug web part from visual ...
0
votes
1answer
23 views

Web-part, search-and-replace function in SP2013

I need to implement web-part search-and-replace function to act on the content of Word docs in a SP2013 library. Any guidance most welcome, its not my familiar environment.
1
vote
0answers
236 views

REST API with Default Network Credentials in Visual Webpart

I have a Visual WebPart, in which I have used REST API to get the data from different lists of different project sites. Below is the code for that. string searchURLWithParam = "http://mysp2013/_api/...
1
vote
1answer
548 views

How to use default document preview callout popup in custom webpart?

I have a custom webpart which gets each document's information from document library. I have created HTML table to show all the data in like document name, Author, Created by, Modified by, etc. Now I ...
1
vote
1answer
129 views

Webpart stopped working after updating DLL version of VS solution

I have one VS solution in which there are 20 custom web part is there and it is working fine in production environment as well. Now because of some business requirement I have changed DLL version of ...
1
vote
1answer
128 views

Debugging SP solution on different server

Can we debug a SP 2010/2013 custom solution like Visual Web Part on a different SharePoint site which is not available on local machine but on a different SharePoint server? I tried to put a site as ...
0
votes
1answer
567 views

Sharepoint 2013: Object doesn't support property or method 'startsWith'" in web part page

Server: Sharepoint 2013 On-premise Client : Windows 7 Pro. + IE 11 Case: We have deployed a Visual Web Part on a 'Web Part Page' in Sharepoint 2013 Server. As soon as client load this page on IE 11 ...
1
vote
1answer
45 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 ...
1
vote
1answer
20 views

Why is Designer 2010 not adding my web part to the zone?

I'm currently working on a SharePoint 2010 site, and I've been using both Designer 2010 and Visual Studio 2010 to create Web Parts for the pages. One of the Web Parts I created in VS 2010 was built ...
1
vote
0answers
61 views

Read Data of user Control in sharepoint visual web part

I developed an user control and added that user control in my visual web part multiple times. Three times manuallay and then dynamically. I can fetch the data of the user control which i have added ...
-1
votes
1answer
39 views

How to set permission list item in custom list?

I create a web part.this web part is using "add a item". it was completed. My problem: I want to create a web part which is having below ex. Ex: I login on my account-> add a item. B person login b ...
0
votes
1answer
82 views

How to set permission for each web part

In Attactments(Custom List). I have three web parts as below picture(web part 1, web part 2, web part 3). In the case, I create three groups (a group, b group, c group). I want a group who just see ...