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

learn more… | top users | synonyms

1
vote
1answer
33 views

Visual Webpart added through SP Designer gives error

I created a simple visual web part(farm solution only) with Hello World text in it and added in a SitePage through browser which is working fine. Now when I open that page in SP Designer 2013 and ...
2
votes
3answers
2k views

Missing my custom webpart property, what did I miss in my code?

I am using sp2013. I developed a visual webpart in visual studio 2013. I have added this code in the codebehind of my webpart: public partial class VisualWebPart1UserControl : UserControl { ...
-1
votes
0answers
33 views

Get Office 365 Contacts in visual webpart (ASP.NET/C#)

I want to retrieve Office 365 Contacts details (FirstName, LastName, Email... etc) and display it in custom webpart in SharePoint online. After google search i found following msdn articles, ...
1
vote
0answers
78 views

Show ribbon bar “Documents” in WebPart page

I have created a WebPart. It consists of some HTML / JavaScript code for filtering a document library and a ListViewByQuery-WebPart for showing the results. Is it possible on this WebPart Page to show ...
1
vote
1answer
43 views

SharePoint Visual Webpart Show contactus form in popup on button click

I am creating one sharepoint visual webpart where I have Send Inquiry button on the click of which Contact us Form should open. In that form I have submit button. By clicking on submit button I am ...
0
votes
1answer
25 views

ViewState in web part becomes null after some idle time

I am storing some values in ViewState in my WebPart user control in SP2013. After some idle time, say 40 minutes when I try to access those values from ViewState i always get null result. Is it due to ...
3
votes
3answers
3k views

How to create and write XML file in SharePoint /_layout folder using visual studio(programmatically)?

How to create and write XML file in below URL using visual studio(programmatically). web.Url + "/_layouts/MyPoject/Generated.xml" I want to generate XML programatically inside MyProject Folder....
6
votes
1answer
6k views

How to get attachment URL programmatically From SharePoint list item?

How to get attachment full URL programmatically From SharePoint list item? Explanation: I have adding new item with attachment. Now I have to bind that attachment link to grid. When click on that ...
1
vote
1answer
2k views

Unable to Edit Web Part Properties in Web Part Zone in 2013

I have a custom page layout that I have designed using Visual Studio. Within it I have several web part zones and I have a zone where I would like users to be able to edit the properties of the web ...
3
votes
2answers
1k views

Reading Web Part custom properties using JavaScript client object model in SharePoint 2010

Is it possible to read visual web part custom properties using Java script client object model in SharePoint 2010?
3
votes
3answers
12k views

Error occurred in deployment step 'Activate Features'

I am creating and deploying Visual Web Part on SharePoint 2013 with VS 2013 as Farm Solution. When deploying Web Part on the server i get the following error: Error occurred in deployment step '...
0
votes
0answers
36 views

How to set up alert on team discussion list in following scenario?

I am having the WebPart, which send a email to selected employees. Along with sending email, it is adding a discussion topic in OOTB Team discussion List. Adding this topic against the user to whom I ...
1
vote
1answer
26 views

Search Most Popular Pages with KeywordQuery

In my Visual Web Part I need a KeywordQuery to search Most Popular Pages. Also, filter the results for Pages only.
1
vote
0answers
33 views

How to get distinct users from SPList in c# from list having people and group column?

My Team Discussion list having the column "AppreciatedTo" of type People and Group. Whereas I need to fetch the distinct users in current year (created date also there) in visual webpart in c#. Adding ...
1
vote
3answers
56 views

SPListItem Update Example

What would be a simple example of Updating an existing SPListItem?
2
votes
1answer
23 views

Format data from multiple lists in Visual Web Part formatted like Standard List

I'm trying to roll data from multiple lists into one web part using Visual Studio, preferably a Visual Web Part. I want it to look like a normal SharePoint list view, with options to sort, filter, and ...
1
vote
0answers
16 views

I am facing $Resources:core,ImportErrorMessage; while adding sharepint2013 webpart

I am getting below error while adding WebPart in webpage $Resources:core,ImportErrorMessage; Please tell me things to do for resolving this error.
0
votes
0answers
19 views

Form in visual web part that posts in another page

I need to post some data from Sharepoint to an external page. I have tried putting an html form in a Visual Web Part <form action="http://myurl" method="POST"> <input type="hidden" name="...
5
votes
1answer
108 views

Star Wars error “use the force”

Error when deploying a Visual Web Part: use the force attribute to explicitly re-install the feature. Is the force not with me? How do i use the force?
4
votes
1answer
530 views

Update panel not working in Safari browser

I have a visual web part in which one button and a label inside an update panel. When I run the web part in IE and Firefox it works fine but it does not work in Safari. My declarative part is: <...
1
vote
2answers
44 views

How to add radio buttons to webpart editor?

I have created a Visual Content Web Part in SharePoint 2010. I would like to add a setting in the webpart's editor that allow the user to select options from a set of radio buttons. I have tried ...
0
votes
2answers
28 views

Site not shared message after visual web part click

I have created a Visual Web Part. Inside, there is submit button that on click runs some code. It works fine with my Site Collection Administrator. but it doesn't work with my test user. This test ...
0
votes
1answer
38 views

SharePoint document library event receiver and WebPart showing items from document library

Preface: I am trying to develop a wWebPart for displaying items from a document library and let users modify each items metadata. When user updates any documents metadata it will raise an event ...
0
votes
2answers
141 views

Get Chart web part to dynamically change with original share point list

I have a SharePoint list that contains a list of projects and their technology. Example. P1 - Java P2 - SAP P3 - Oracle P4 - Java p5 - Oracle I want to be able to represent ...
2
votes
4answers
7k views

the name 'initializecontrol' does not exist in the current context visual studio 2013

I am encountering this error when I create a visual web part in Visual Studio 2012: the name 'initializecontrol' does not exist in the current context visual studio 2013 Edit 1: the error appears ...
1
vote
0answers
44 views

Sharepoint SandBox Solution is not Working in SharePoint online (Custom action)

I have created a sandbox solution in sharepoint 2013.I have added Custom action and Visual web part in to the solution. Custom Action Code as following : <?xml version="1.0" encoding="utf-8"?> ...
1
vote
0answers
24 views

How to configure SMTP in Sharepoint 2010 Foundation on Windows 7?

I am having the functionality to send email from custom WebPart(C#) using configured SMTP on SharePoint 2010. Wherein my development environment, having Windows 7 OS configured with SharePoint 2010 ...
1
vote
0answers
55 views

Office 365 - Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain

In Office 365 environment, I have received the below error while submitting the form which was developed by Sandboxed Solution. Web Part Error : Unhandled exception was thrown by the sandboxed ...
0
votes
1answer
23 views

How to change the Theme for Team Discussion in hierarchical manner?

I need to show standard theme for the Team Discussion on my page. Is there any way to change the theme for Team Discussion Webpart? Also Is there any place where I can get ready-made CSS and themes ...
1
vote
1answer
66 views

How to use SMTP configured on SharePoint 2010 server in custom WebPart to send email?

The outgoing SMTP is configured to the SharePoint 2010 server. Where as in my custom webpart, need to use the configured settings to send email from webpart itself. Is there any mechanism in object ...
1
vote
1answer
39 views

After adding mapped Layout folder in Visual WebPart project showing null reference error in Sharepoint 2010

I wanted to use css file to my visual WebPart. Developing it in VS2012. Initially worked fine without .css after deployment. After following steps here, updated the .wsp. It is also working fine. But ...
0
votes
0answers
43 views

How to get manager email id of selected user in people picker control?

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 ...
4
votes
3answers
6k views

Session and HttpContext not available in web part

I have a web part in which I have Grid View which displays data from a custom list. In the Page_Load I am initializing the DataTable. I want to store the DataTable object in Session object so that it ...
0
votes
1answer
19 views

What settings need to do in following senario to validate Sharepoint Site url in VS 2012?

Question may be basic, but scenario is not understood. scenario is I am having the SharePoint 2010 installed on Windows Server 8 under Domain1. My Developer machine also under Domain 1. But while ...
0
votes
1answer
167 views

Using Charts in SharePoint 2013

I want to use a custom chart in SharePoint which picks up data from a list? I have not worked with SharePoint charts can anyone give me an example of a working chart? And also if there are many ...
1
vote
1answer
53 views

Alternative approaches to designing workflows for simple approval process in SharePoint

I have to develop a simple document approval workflow in my SP 2013 on-premises site collection. Instead of going with designer workflow, visual studio sequential workflow,can i implement this ...
1
vote
0answers
16 views

Set Timeline XML with other Timeline XML

I have two timeline webparts: Source and Destination. I have to 'export' or duplicate the Source Timeline View in the destination Time Line. XmlDocument timelineXML = new XmlDocument(); ...
1
vote
0answers
19 views

Visual Studio Community for SharePoint 2013 [duplicate]

I am site administrator for one of the sharepoint 2013 on-premise site and I would like to develop the custom webparts for communicating lists and libraries at site level using visual studio Community ...
0
votes
0answers
18 views

How to import custom webpart into a webpart zone in an application page using Element.xml?

I have a custom webpart and an application page. I want to add this webpart to the application page using webpart zone. I have tried to achieve this using element.xml but it gives me error [...
2
votes
2answers
2k views

Visual Web Part vs Visual Web Part (Sandboxed)

While I was creating a visual web part in Visual Studio 2010, I also saw an option to create Visual Web Part (Sandboxed) under Visual Studio Template Gallery. I need to know how does a Sandboxed ...
0
votes
0answers
58 views

Updated DLL in Sandbox Solution upgrade not deploying to GAC

I have a sandbox solution that I am using to deploy a visual web part (among other things) to my site. I have already deployed one version of this web part, and I am now trying to add some controls / ...
9
votes
4answers
15k views

Error occurred in deployment step 'Recycle IIS Application Pool': Object reference not set to an instance of an object

I get this error in the deployment step of a share-point farm based project. Most of the suggested solutions on the net are a simple Visual Studio re-start, however, a simple VS restart won't fix this....
0
votes
0answers
16 views

Web part with buttons like a list

Using a web part to mimic a list, how do I create buttons New item and edit in a web part? These buttons should look and work exactly like in a list.
0
votes
2answers
886 views

CSS Styles in ASCX are not being Rendered

I have a Visual WebPart being used on a self-hosted SharePoint 2013 stack. Problem is that in the WebPart design file, I have a Style tag <style>.. with some definitions for how certain ...
0
votes
1answer
66 views

Search list using linq

Following is my code to load results in a gridview. What I want? I want to be able to modify linq query based on start date,end date and title. User can search on any 1 field. How to make linq query ...
0
votes
1answer
62 views

Creating Visual Web part for file upload

I am trying to create a visual web part to upload documetns using FileUpload control. Below is the working code for uploading a file. protected void UploadButton_Click(object sender, EventArgs e) ...
3
votes
1answer
86 views

multi checkbox webpart properties

I wish to provide option to Select multiple option in my webpart Properties. Below code only allows me to Select one option. How to Select multiple options? Private colorPicked As MyColors Public ...
1
vote
1answer
160 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 ...
0
votes
1answer
141 views

How To Move SharePoint App From Development Site To Production Site

I have created a SharePoint app in SharePoint online in visual studio. This consists of a client web part and a web app hosted in Azure. I have set up a development site and successfully managed to ...
0
votes
1answer
73 views

Deploy Web Part from Visual Studio to remote SharePoint [duplicate]

I've made a Visual Web Part in Visual Studio (non-sandboxed) that I could easily deploy & "debug" on my local SharePoint installation. I want to copy this web part to another SharePoint ...