Tagged Questions

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

learn more… | top users | synonyms

0
votes
1answer
4 views

Removing add new in a custom webpart

I am currently using Sharepoint 2013 foundation. I created a custom Web Part in Visual Studio to help filter a custom list on logged in users. Each logged in user will see a separate view. I then add ...
2
votes
1answer
29 views

Convert asp.net website solution to visual web part

I have a small website written in asp.net c#. It consists of 7 pages or less and a master page, connected to a database and references a class library. How to convert it to a visual web part in ...
0
votes
0answers
10 views

How to clear custom property value in web part

I have created a custom property ListName in a Visual web part that takes string as input. I am using a check condition in page load and if that check fails, I want to clear the text box (custom ...
2
votes
0answers
20 views

Chart control data points not visible - Visual WebPart

I have created a Chart control based visual webpart. I have used custom labels for both x and y axis. The problem when i am trying to plot xy values, it is not visible in the chart. Code ...
1
vote
3answers
61 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
2answers
32 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
0answers
54 views

Attach file to list item in SharePoint 2013 Sandboxed solution

I have developed a visual webpart in Sandboxed solution for SharePoint 2013/Online. I am trying to add an attachment to list item at the time of creating the item using Client Object Model. I have ...
0
votes
0answers
15 views

Add Property page value to sharepoint ASP page

I have a simple SharePoint 2013 webpart that will simply use the marquee tag to scroll text across the part. I have one personalization part in the configuration section: the text to scroll. The ...
0
votes
0answers
17 views

Web part mysteriously prevents saving edits to webpart-page

I've got a mystery problem with a visual webpart in SP2010. The webpart itself is working perfectly. Weird thing is that after you add an instance of this particular webpart to a page (by editing a ...
0
votes
0answers
90 views

Sharepoint web control in visual web part - value cannot be null, parameter name: input

I create a visual web part to change edit form of Task list. When I click Sharepoint:Savebutton i get error: Server Error in '/' Application. Value cannot be null. Parameter name: input ...
1
vote
0answers
28 views

How to show sorting arrow in SPGridView

I have an SPGridView control in a visual web part. I am trying to implement sorting functionality, but the grid control is not displaying the sorting arrow next to each column header. How can the ...
0
votes
2answers
44 views

SPGridView SelectedRow.Cells[] returns empty value

I have created an SPGridView control in my visual web part. Inside SPGridView, there is an SPHyperLink control that stores some URL. When accessing this value using SPGridView ...
0
votes
0answers
14 views

The type or namespace name 'MontlyCalendarView' could not be found

I am following this document Walkthrough: Creating a Web Part for SharePoint by Using a Designer but I get this error: The type or namespace name 'MontlyCalendarView' could not be found. Are ...
0
votes
2answers
33 views

How to trigger a click event for a column item in SPGridView control

I have created a SPGridView control in a visual web part project. This control displays all the folders inside a Document library. I have used SPBoundField to the display the column data. Is it ...
0
votes
0answers
9 views

How to know if the expanded node in a TreeView control is a list node or a folder node

I have created a tree view structure using TreeView control in Visual Web part. This structure shows all the document libraries and the folders inside it. Is there a way to know whether the expanded ...
0
votes
1answer
82 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 ...
0
votes
2answers
37 views

set a users profile to default sharepoint image programatically

I am trying to create a custom web part which shows the current users photo and his name. Also i am giving two buttons one for adding an image and another for setting it to default image or removing ...
0
votes
0answers
35 views

Getting error when trying to open a spsite in Application page

I am Trying to open an spsite in Application page like Sp context.current.web but here spcontext is null so i tried like giving whole URL path via a string .Here error coming as 404 file not found ...
0
votes
0answers
13 views

Plain HTML css-links and script-links in a Visual Webpart? (sp2010)

The recommended way of adding js and css to any Sharepoint component is using Sharepoint:CSSLinks and RegisterClientScriptBlock. But I hate it! I like being able to use as much pure HTML as possible, ...
1
vote
0answers
29 views

SharePoint 2010 and 2013 can't not find SPLimitedWebPartManager

I trust this is one of the most common question when approaching with adding webpart to you sandbox solution through SharePoint 2010 or SharePoint 2013 I have researched google for a while and can't ...
1
vote
3answers
267 views

the file '/_controltemplates/.ascx' does not exist

I am making a visual web part which is referencing a user control. The code in SharePointProjectItem.spdata is given below. <ProjectItemFile Source="ExportUserControl.ascx" ...
0
votes
1answer
47 views

c# add existing webparts on site into sandbox webpart solution

I want to create a webpart using sandbox webpart solution on C# which contents two or more webparts (such as a list, task, document,...) existed on my Sharepoint site. So my new webpart will have some ...
0
votes
0answers
72 views

Update panel AsyncPostBack not update pannel

I'm create simple visual webpart, but update panel not update updatepanel1 if is using async callback. Response from button click: http://pastebin.com/zWmPL4XB, if use PostBackTriger it work fine. ...
0
votes
3answers
89 views

Changing visibility of text/controls in a visual web part

I need to show/hide a section of text and controls in a visual web part when a button is clicked. I've seen references to doing this via JS but can't connect the dots for how to integrate that into ...
1
vote
2answers
56 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
vote
2answers
50 views

Storing data entered into a custom web part

When building a visual web part that uses an ASP form for an interface, what is the generally-accepted "best" way to store the data once the user has filled out the form? The only way I can think of ...
0
votes
0answers
13 views

Import my visual webpart to my site I get error; “$Resources:core,ImportErrorMessage;”

When I import my visual webpart to my site I get error; "$Resources:core,ImportErrorMessage;". My solution has WCFService project and visual webpart calls WCF service. I have added my webpart to ...
0
votes
2answers
110 views

SPUtility Send Email for mulitple users

I am trying to send an email to multiple users using SP Utility Send Email I am using visual studio, c# But i am facing issue, as i am trying to specify email addresses as a ,b Should i be using ...
0
votes
1answer
74 views

Visual WebPart custom properties scope

I want to set the scope of the custom properties of visual web part so that every time user add the custom web part in different page in pages library, values can be changed for the properties and ...
2
votes
1answer
292 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?
0
votes
0answers
48 views

Set Permmision to SSRS report Programmatically

I like to get all SSRS reports in my custom web part and set Permission to specific User for specific Report. How to list out all reports and set their permissions programmatically?
0
votes
2answers
25 views

How do you display a link that when clicked opens up a new email in Outlook?

I am creating a visual web part that displays the site owners of a SharePoint site and each site owner's email. I would like users to be able to click the email address, and this will open up a new ...
0
votes
1answer
42 views

How do you display a list of users with full control?

I am currently working on creating a visual web part that displays a list of users with full control to a SharePoint site, along with their loginID and email. The code I've written lists all the users ...
0
votes
1answer
64 views

My gridview does not display.

I am creating a web part on SharePoint that shows site owners and their email addresses. I am able to show that information in a listbox, but I would rather do it in a gridview. When I change my code ...
0
votes
1answer
108 views

Style form field control

I have created a visual webpart. In that I created a SharePoint form field control instead of asp.net textbox. I am not able to apply styles to this control and it's not looking good in the form. How ...
0
votes
2answers
134 views

How do you show a list of site owners for a SharePoint site?

I am trying to create a web part that will list the site owners of a SharePoint site. I'm not sure where to start. I've been unable to figure out how to access the permissions property of a site. Any ...
-1
votes
1answer
42 views

may i know how to use list field iterator ?will u pls give one scenario?

I want to know the purpose of list view iterator and need to use in my current project.will u please brief on this. I have some 20 fields in visual webpart by using asp.net controls but as per the ...
0
votes
0answers
107 views

<SharePointWebControls:UserField> in visual web part not displaying more than one users details

I have a list in which there is one user field and in the visual web part I want to display the data of that list. To view user's details I want to display the details in the way SharePoint displays ...
1
vote
2answers
65 views

How to make taxonomy picker accessible for anonymous users?

I have a visual web part in which I have placed one taxonomy picker control to select the managed metadata for user. The web part is going to be accessed by the anonymous users. But when as an ...
1
vote
1answer
125 views

Web Service call in Sandox Visual Webpart

I have web service which I want to call in my sandbox visual web part. when I'm call web service method in web part at that time I'm getting this error Web Part Error: Unhandled exception was thrown ...
1
vote
0answers
71 views

Unknown server tag when using visual webpart in masterpage in sharpoint 2010

This is just a basic question. I have a solution say "My.Solution".In this I have a project say "My.Project". I added a visual webpart say "Menu". The namespace of the webpart is like ...
1
vote
0answers
161 views

LINQ DataSource DataContext: Could not load type

I made a very simple webpart with a grid view and and a LINQ to SQL data context object to surface some employee information for a phone list. I was able to databind the grid view directly to LINQ ...
0
votes
0answers
118 views

Editable ListViewByQuery

I used a LVBQ in a visual webpart. The list is displayed successfully and the filter applied using the Query is working without any problem. Now, I want to edit the items displayed by the listview. ...
0
votes
1answer
206 views

toolbox controls are disabled in visual studio 2010?

When I create an empty SharePoint 2010 project with Visual Studio 2010 a lot of controls are disabled (chart, sqlDatasource). I try to reinitialize and other stuff but nothing. The controls are ...
0
votes
2answers
127 views

Custom webpart to display HTML form which supports adding additional dataRow on the fly?

Would like to build a WebPart which will display an HTML form(allow the users to add the data rows as many as required) and will insert the data into the SharePoint list on the submit (based on ...
0
votes
2answers
1k 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
54 views

Modify SharePoint sandbox manifest.xml

I need to modify the SharePoint sandbox manifest.xml. Can any one help me with how I can do this?
0
votes
1answer
231 views

Deploy Farm Solutions to Online SharePoint 2013

I am migrating SharePoint 2010 project to online SharePoint 2013. I managed to move lists, document libraries..etc. with sandbox solutions. But can any one help me how can I deploy the farm ...
0
votes
0answers
102 views

Fire events on TIME changed in date picker

I am making a visual web part that has a date and time picker. Essentially, I would like the first of two date pickers to update the second date picker as long as the second one has not been modified ...
0
votes
2answers
117 views

Changing Mode from BrowseDisplayMode to Edit Mode

I have a custom webpart, i am trying to get to do a one-click transition from WebPartManager.BrowseDisplayMode to SPControlMode.Edit. Unfortunately, there is no direct means of transitioning between ...