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

learn more… | top users | synonyms

3
votes
0answers
18 views

SharePoint 2013 Site Definition Toolbar Type Standard not showing

I have a problem with the toolbar type "standard" in SharePoint 2013. If I insert a XsltListViewWebPart with , there is no "New Element" button. And no "View Choice" and something like that. I've ...
1
vote
2answers
95 views

Fixing managed meta data navigation problem

I have the following :- SharePoint server 2013 web application. the web application contains two site collections of type enteprise wiki. i have enabled metadata navigation for the two site ...
0
votes
1answer
21 views

SharePoint cascading drop down on visual web part using client side code

Hi I am working with cascading drop down in a visual web part. I am able to complete this functionality using c# but I want to implement this functionality using JavaScript jquery basically I want to ...
0
votes
1answer
36 views

SharePoint visual webparts for NewForm with client side coding

I need to use visual web parts to create a new item form for a list. I know I can do this by using SSOM.. But I want to reduce the load on the server Can I use CSOM?.. Or is CSOM mainly for sandbox ...
0
votes
0answers
9 views

Show all Lists of current site in custom web part properties in SharePoint 2013

I have been trying to load all the SP Lists of current site in web part properties, but i just found out that there is no cs file of the web part in 2013, has the concept of web part properties ...
0
votes
1answer
377 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
28 views

Can I deploy a farm solution to my site collection only

I have created a visual web part using visual studio of type "Farm solution", then I add the wsp file using the following command:- PS C:\Users\Administrator> Add-SPSolution ...
0
votes
3answers
37 views

SharePoint 2010 how to find the subsite name programmatically and refer the Parent site WebPart

I have List created in the Parent Web and created a Visual WebPart to pull the data from the list and display. When I add the same WebPart in the SubSite pages the data is not populating to display. ...
1
vote
1answer
310 views

Call WCF hosted in SharePoint from JQuery

I created a WCF Service hosted in JQuery, when I navigate to the web service in browser and pass a parameter to it, I get back the data correctly, for example like this: ...
1
vote
0answers
188 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
22 views

Please wait message while page with visual webpart is loading

I have a page which consists of a Visual webpart. The user goes to the page by clicking on the Sharepoint default side nav. The page I mentioned earlier takes a while to load and I would like to have ...
0
votes
1answer
2k views

Creating and deploying a visual webpart using VS 2012

I'm new to sharepoint. I managed to create a visual web part in VS 2012. But I don't know how to deploy it properly. I only added a button control to the webpart page. After that I used F5 to deploy ...
0
votes
1answer
335 views

How to make different permission on document library?

I want to make document library that can filter view from the user organisation by region. In my Institution has 3 levels that has different level of access file. The hierarchy of user level can be ...
0
votes
0answers
21 views

Issue when *directly* deploying a Solution on SharePoint 2013

I have been having trouble deploying a WSP file (a solution containing visual web parts and [primarily] core backend logic) to our SharePoint 2013 server. Deploying through Visual Studio works ...
0
votes
1answer
53 views

People Picker custom error message

I have people picker in my custom web part (SP 2013), and all my controls in updatePanel. Requirement is to set a custom error message for people picker. I am able to change the error message in ...
0
votes
0answers
24 views

URL field in sharepoint : Points to Control Template when http removed

We have a requirement to display urls based on logged in user . We created a single line of text for url storage in sharepoint list . C# code pulls the data and displays correctly . All is well when ...
2
votes
1answer
42 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
52 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
12 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
24 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
652 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
73 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
363 views

Filter Parameter from Visual Web Part to XSLT or DataForm Web Part

I have a scenario where from Visual Web Part I need to send filter parameter to XSLTListView or DataForm Web Part on the same page! If I use Query String then I need to Response.Redirect and that will ...
0
votes
0answers
118 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
1answer
159 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
0answers
22 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
2answers
66 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
2answers
149 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 ...
0
votes
0answers
20 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 ...
1
vote
0answers
419 views

Update panel issue in visual web part

I have created a web part using update panel and the page where I placed that web part there is also a task list with timeline view. My problem is that whenever my update panel gets posted back the ...
0
votes
0answers
125 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
42 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
40 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
21 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
0answers
24 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
2answers
61 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
38 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
21 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
3answers
658 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" ...
1
vote
0answers
34 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 ...
0
votes
1answer
65 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
107 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. ...
1
vote
2answers
62 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
3answers
235 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
140 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 { ...
0
votes
0answers
19 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 ...
2
votes
1answer
517 views

need to display image of the user in the people picker, Sharepoint 2013?

In the people picker, the attributes it shows are name,designation and their online or offline status, Is it possible to display the image of the person?
0
votes
0answers
348 views

Getting error when doing a jquery ajax funtion to a webpart aspx page

I want to send data using ajax from jquery to c# (note: im sending request to the same page). I am following this tutorial http://encosia.com/using-jquery-to-directly-call-aspnet-ajax-page-methods/. ...
0
votes
2answers
221 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 ...
1
vote
1answer
1k views

Getting Metadata column field control on Custom form in sharepoint

I have a custom custom sharepoint form which i have created using visual webpart. I want to have a Metadata field in my custom form.However, i am not able to find it in my ascx file. Please help.