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

learn more… | top users | synonyms

0
votes
2answers
6 views

Share point visual webpart with ajax modal popup

I am trying to update the text area displayed in the Ajax modal popup. I am updating the Text area with sharepoint list multiline text field. My spservices is wriiting the data correctly. But when i ...
0
votes
0answers
17 views

Dynamically change workbooks in sharepoint excel web part

I have created a custom ajax visual webpart that hosts an Excel workbook(say summary.xlsx) using ExcelWebRenderer class and i have LinkButton in the same webpart. My requirement is - when users clicks ...
0
votes
0answers
16 views

Editable repeating region in sharepoint

SharePoint Novice. Just as the image shows, I'm trying to create an editable repeating region in SharePoint and I have idea on how I can achieve that. Any suggestions or ideas on how I can get this ...
0
votes
0answers
9 views

How Add NPOI to a Sandbox Sharepoint webpart?

I've a requirement to create a xsl file based on the list data. I can't use the default way to export list items into a excel file. I was testing the NPOI api but in my Visual web part it is not ...
0
votes
1answer
30 views

Asynchronus loading of visual web part

I am developing a visual web part that will do some some heavy operations. It is a visual web part in SharePoint 2013, on premise. I want to load my data asynch. Ajax toolkit is not compatible and ...
1
vote
1answer
40 views

ASCX controls, how to prevent multiple inclusions of same Javascript file?

By example we have two webparts on page, with ascx controls. One ASCX control loads this.Controls.Add(new ScriptLink() { Name = ...
0
votes
1answer
44 views

How can I call a server side method when browser gets closed

I have created a SharePoint 2010 visual web part. I have create a method CheckPref in usercontrol.ascx.cs. How can i call this method when the browser window is closed? If i useScriptManager ...
0
votes
2answers
37 views

Asp.net label returns empty string when using jQuery

I have created a SharePoint 2010 visual web part. In the page load event of the user control, i am setting the value of an asp.net label. <asp:Label ID ="lbMessageIndex" runat="server" ...
0
votes
1answer
40 views

Error deploying visual web part to SharePoint 2013

first post here. I've having a hard time with a couple things in SharePoint 2013, one is: I'm developing web parts to deploy to a SharePoint site. The problem is that every single time I deploy them ...
0
votes
1answer
24 views

How to display list items store in different Web Application without REST?

I have an one intranet site, and one public site. These have different web application. I want to display Tasks list and also insert items in intranet site into public site. I try to add ...
1
vote
1answer
28 views

Adding an item to a List when clicking a WebPart Properties 'OK' button

I wonder if someone can help me. Im new to SharePoint Programming but learning slowly. I have a superb Web Part downloaded from Codeplex which essentially is a Countdown Timer in jQuery. ...
0
votes
0answers
61 views

Adding an a attachment to a new list item programmatically (not typical issues)

I am having a bit of a weird issue. I have created a Visual Webpart for SP2010 using C# and VS2010. I finally got all the bugs worked out and it is working properly. If someone wants to attach ...
0
votes
0answers
34 views

Sharepoint COM: Field or property * does not exist after type conversion

I am working on a visual web part of SP 2013 Server that allow user to change the list column properties. Everything goes fine. The error is: when I change the column type, it was successfully ...
1
vote
0answers
33 views

GridView1_RowEditing is being called instead of calling GridView1_RowUpdating

i have a simplest code..and its working fine if I run it as just Dotnet simple webpage. but when i use this code in VisualWebPart it react in other way.. the problem is... I m making CRUD operation ...
0
votes
2answers
33 views

Replace NewForm, EditForm with visual web part solutions

I have a visual web part that performs same functions as NewForm.aspx in SharePoint. I can enter data and click save on the visual web part and it saves title field to SharePoint list. Now I would ...
0
votes
0answers
24 views

Transfer the text box values of one web part to another web part through programmatically in share point 2013

how should i Transfer the text box values of one web part to another web part text boxes through programmatically in share point 2013
3
votes
0answers
39 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 ...
0
votes
1answer
39 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
69 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
39 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
2answers
58 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 ...
1
vote
2answers
116 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
3answers
125 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. ...
0
votes
0answers
36 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
0answers
40 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
93 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
31 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
72 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
92 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
15 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
40 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 ...
2
votes
3answers
2k 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
151 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
155 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
31 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
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 ...
0
votes
0answers
157 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
57 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
106 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
33 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
51 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
50 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
327 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
101 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
40 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
24 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
36 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
1k 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
89 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
139 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. ...