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

learn more… | top users | synonyms

0
votes
1answer
304 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 ...
2
votes
0answers
18 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
43 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
30 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
348 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
42 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
75 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
12 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
40 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
1answer
285 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: ...
0
votes
2answers
111 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
16 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
391 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
74 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
25 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
32 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
13 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
8 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
31 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
12 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
207 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
27 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
42 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
62 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
46 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
72 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
46 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
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 ...
2
votes
1answer
494 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
326 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
95 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
873 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.
0
votes
1answer
70 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
275 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?
1
vote
4answers
1k views

Dynamic button not firing its event

I am hoping that someone can help with the following scenario. Basically the error I am getting is that when I click on my dynamicly created button it is not firing its corresponding function. The ...
0
votes
0answers
42 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
61 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 ...
1
vote
1answer
378 views

User profile picture in visual web part

I want to make user upload the profile picture in my web part, I searched over the internet how to accomplish this? I found the this post which describes how to get it. My code is: void ...
0
votes
1answer
105 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
104 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
41 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
96 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 ...
4
votes
1answer
1k views

How to create a multilingual visual webpart in SharePoint 2013

Have anyone ever implemented multilingual visual web part in SharePoint 2013? I see there are many links out there on this topic but they are not cohesive and complete. I don't know how can I address ...
1
vote
3answers
562 views

Jquery clickable Tooltip inside SharePoint WebPart

I have a requirement in which when ever user hover over a text(hyperlink) a tool-tip should appear that should contain images which are clickable using JQuery $('.cover_beholder').hover( function ...
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
2answers
577 views

How to get FBA users' profile with ASP.NET

I'm getting Windows users' profiles, in my webpart, doing the following: UserProfileManager pm = new UserProfileManager(SPServiceContext.Current); SPUser spuser = web.AllUsers.GetByID(user.Id); ...