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

learn more… | top users | synonyms

1
vote
1answer
32 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 ...
-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
76 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
41 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 ...
0
votes
0answers
33 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
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
1answer
24 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.
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="...
1
vote
3answers
55 views

SPListItem Update Example

What would be a simple example of Updating an existing SPListItem?
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 ...
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?
1
vote
2answers
43 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 ...
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
64 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
42 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 ...
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 ...
1
vote
1answer
52 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 [...
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
1answer
61 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 ...
0
votes
1answer
135 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
72 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 ...
1
vote
1answer
158 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 ...
3
votes
1answer
76 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
20 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. ...
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 / ...
1
vote
1answer
42 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
22 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
229 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
27 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
71 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
338 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."), Personalizable(...
2
votes
1answer
31 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
41 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
319 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
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
0answers
116 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
1answer
32 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 ...