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

learn more… | top users | synonyms

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
11k 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
22 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 ...
0
votes
1answer
20 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
28 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
47 views

SPListItem Update Example

What would be a simple example of Updating an existing SPListItem?
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 ...
2
votes
1answer
22 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
17 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
107 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
523 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
39 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
35 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
139 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
39 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
22 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
42 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
22 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
57 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
37 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
28 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
18 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
162 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
47 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
15 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
18 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
17 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
50 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
14k 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
853 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
63 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
59 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
72 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
108 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
105 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
58 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 ...
3
votes
1answer
75 views

Which is recommended form control to use in SharePoint?

When trying to develop Web Part or Application page or modifying existing SharePoint application pages like (user.aspx, create.aspx, etc..) From below list which control is recommended to use <...
1
vote
1answer
18 views

ObjectDataSource - schema seems cached - unable to refresh

Within a Visual Studio 2012 Visual Web Part, I've created a simple FormView referencing an ObjectDataSource to autogenerate an editable form. Creating this the first time, there was no issue. ...
1
vote
1answer
40 views

Visual Webpart Registration form where data is stored to SQL Database table on button click

Please give the snippet for Visual Webpart where data is stored to SQL Database table.I'm able to store it in list but i need to store directly in SQL Server database table on submit.
0
votes
1answer
21 views

Is there any reference such as MailKit to add in sharepoint 2010

I am developing a visual webpart in SharePoint 2010 project and I have to deal with emails in my visual part. I tried to add MailKit reference to my project and it keeps telling me that it work only ...
0
votes
1answer
208 views

If Page is idle for sometime any postback leads to whole page refresh in UpdatePanel

Within the solution there are two webparts, second is being shown within a modal dialog in first webpart. In second webpart everything is inside update panel(bad practice). When I open the second ...
0
votes
1answer
23 views

Error when I search for some specific words in SharePoint 2010

I have a custom webpart on the search page which is getting data from an external web service. I am getting the following error when I am searching for some specific words (e.g test) in sharePoint ...
0
votes
0answers
26 views

Creating Connectable Visual Web Parts

Could anybody tell me how to create connectable Visual Web Parts? I'have followed this link - Creating Connectable Web Parts - but it is refers to Web Parts and I wasn't succesful in my attempt- ...
2
votes
2answers
65 views

Cannot write file in a folder

I cannot write a file into a folder through some code in a VisualWebPart in a Sharepoint 2013 solution. I've given write permission to c:\myfolder to Everyone. The code I use to write is the ...