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

learn more… | top users | synonyms

0
votes
1answer
15 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 ...
2
votes
4answers
6k 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
21 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
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 ...
1
vote
0answers
15 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
27 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
17 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
28 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
27 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
16 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
17 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
157 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
41 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
13 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
16 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
12 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
41 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 ...
0
votes
0answers
14 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
769 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
59 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 ...
0
votes
1answer
55 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
50 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
62 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
61 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
35 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
72 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
37 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
167 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
22 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
25 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
51 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 ...
3
votes
2answers
246 views

Getting custom webpart property with JSOM

I have a webpart with a custom property setup like so: public static string TargetUrl; [WebBrowsable(true), WebDisplayName("My DisplayName"), WebDescription("My Description."), ...
1
vote
2answers
3k views

How to get selected terms from Taxonomy web tagging control

I have created a web part in which there is one taxonomy picker control to enable user to select department. I want to store the selected term to the list column which is of type Managed Metadata. ...
2
votes
1answer
28 views

Top visited entries on site collection blogs

I want to develop a web part which shows the ranking of entries of a site collection. By now, I think a way to do this is to use a Javascript code added on the master page which adds a row to the ...
1
vote
1answer
39 views

JSOM peoplepicker 500 error

I am implementing a people picker on my visual webpart to allow users to query a list according to a person. My implementation is similar to the post found here, but when typing in the people picker I ...
5
votes
2answers
260 views

Dynamically get List ID from List Name

In my Visual webpart I need to, based on the name of a list get the ID of the list, dynamically. I'm using C#. How can this be done?
1
vote
0answers
97 views

How to pass ID of selected row in custom list view web part in label of share point 2013

I have created a XsltListViewWebPart using server side object. Now I have to pass the ID of the selected item into a label. I want to pass the ID without JavaScript. This is my code for provider ...
1
vote
0answers
24 views

How to create Visual Connectable Web Parts

I want to create a Visual connectable web part. Provider web part contains list view part and consumer web part is a normal User Interface screen which will get Record ID(Row ID) of selected row and ...
1
vote
1answer
31 views

Dynamic translation in SharePoint

I am using a visual webpart to show custom content that I get from a custom web service. I want to translate that custom content dynamically in SharePoint. Resource file is not an option since that ...
1
vote
1answer
115 views

Set DropDownList text and value c#

I am currently trying too develop a visual webpart for an on premise SharePoint environment. The webpart contains a dropdown which I need to set the text and value so that I can use this later as part ...
0
votes
1answer
62 views

SharePoint 2013 Empty Project - Page Load

I created a new SharePoint 2013 Empty Project in Visual Studio, I added visual web part. I want to write code at Page Load. But Page Load doesn't appear under my project. How to I find it?
0
votes
0answers
54 views

Connect List view web part as provider and Visual web part as consumer in SharePoint 2013

I have a page where i have added a list view. Now As per the selection of list item from list view i have to show values in my visual web part, So my list view will be the provider and visual web part ...
0
votes
1answer
268 views

Closing the Window from Visual Web Part Page in Chrome is not working

<script lang="Javascript"> function quitBox(cmd) { if (cmd == 'quit') { open(location, '_self').close(); } return false; } </script> <input ...
0
votes
0answers
7 views

Use site template as team site [duplicate]

I have created a site ,sub site,list and pages. Then saved it as site template. By using the site template I had created 2000 sub site in same site. If I modify a list or page the whole 2000 sub site ...
0
votes
1answer
178 views

Error when adding custom web part to a page

I have a web part I have developed in Visual Studio. It just goes out to a document library and gets all the items: SPListItemCollection collListItems = oDocumentLibrary.GetItems(); This works ...