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

learn more… | top users | synonyms

3
votes
0answers
54 views

Javascript Conflict on Visual Webpart when adding multiple times with different webpart properties on single page

What I am doing: I am retrieving list items from list using javascript as per visual webpart custom property. I have created a dropdown in webpart editor part from where I am getting site url. As per ...
0
votes
2answers
103 views

SharePoint DateTimeControl does not render the calendar in web part

I have created a web part for creating new list item using VS. Web part has a DateTime Control. If I click on Calendar icon then it does not render it, rather gives a server error. I have ...
0
votes
1answer
32 views

SharePoint 2010 Adding Web Part Error: Object reference not set to an instance of an object

I created a Farm Solution visual web part in a development environment (VM). I've run into issue while attempting to deploy this Visual Web Part in a test environment. I added (Add-SPSolution), ...
0
votes
1answer
20 views

Display/hide control in Webpart based on edit/browse mode

I have a Visual Studio project in which I have created a Visual Webpart. In the user control I have a panel which I want to display in edit mode and hide in browse mode. ASP.NET code snippet: ...
0
votes
0answers
8 views

Where to find proper resource for developing SharePoint forms using Visual Studio

Since Microsoft is not continuing with InfoPath in their next Office, so I wanted to learn proper way of developing forms using Visual Studio. What else- Creating lists using Visual Studio so that ...
1
vote
3answers
4k views

How to separate Title and Url from hyperlink field?

I have created a column which is of type Hyperlink or Picture. I want to display the list of links in web part, in such a manner that title should appear as text and the Url should be bound in that ...
0
votes
0answers
22 views

Search list using linq

Following is my code to load results in a gridview. What I want? I want to be able to modify linq query based on start date,end date and title. User can search on any 1 field. How to make linq ...
2
votes
1answer
29 views

update panel not working in visual webpart

I am trying to use update panel in visual webpart(farm solution only) but when i click on button nothing happens <div> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> ...
1
vote
1answer
3k views

How do I get the list item ID of an item I just created in a Visual Webpart

I have a visual webpart which creates a list item, but I need to reference the newly created item's ID for later use in the same webpart. How would I do this in C#? Thanks
0
votes
0answers
20 views

How to save data locally to a webpart?

So, here's my scenario. I have a webpart which has a textbox. I want to save the contents of the textbox specifically tied to the webpart (there would additional controls but I don't want to save ...
1
vote
1answer
37 views

Where to store often used class in Sharepoint 2010?

I have a helper class which is often used in number of webparts. The file contains useful methods. Everytime when I create a new webpart in Visual Studio, I need to import this file into the project. ...
0
votes
1answer
1k 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
51 views

get sharepoint DateTimeControl selected date?

currently i m creating Visual web part , with SharePoint DateTimeControl trying to get select date from DateTimeControl programmatically .. how to get DateTimeControl selected date value.
0
votes
0answers
27 views

How can I add custom visual web part to a site pages

I want to add custom visual web part to an existing site page. How can I achieve that? Do i need to create feature for that ?
0
votes
1answer
1k 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 ...
12
votes
4answers
6k views

Visual Studio 2012. Visual webpart's ascx.g.cs file empty after registering any control

I've discovered a problem when a Visual webpart's g.cs appears to be empty. I'm using Visual Studio 2012 Update 3 and a project for SharePoint 2010. The steps to reproduce the problem: in Visual ...
0
votes
1answer
59 views

getting error while adding visual webpart

I have created visual webpart which as .net validation control. When i deploy part and try to insert into page i get error This page contains content or formatting that is not valid. You can find ...
0
votes
0answers
20 views

Call a PowerShell .ps1 file from Visual Web Part

I want to call a .ps1 file from my visual web part which is part of my wsp. Is this possible? Does it similar to calling a notepad.exe file from a console or web part's .cs file. Customer wants to ...
0
votes
0answers
223 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 ...
0
votes
1answer
576 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
1answer
78 views

SharePoint 2013 C# get all websites and sort alphabetically

I am currently building a visual webpart for an on premise SharePoint farm in C#. I am currently able to get all of the webs and also get all of the list items within each web, using the CAML Query I ...
0
votes
2answers
22 views

Bind in GridView in a VisualWebPart not evaluated

I have a VisualWebPart with a AspTemplateField that should bind a field but it doesn't The code is the following: <SharePoint:SPGridView ID="GridView1" runat="server" ...
0
votes
0answers
8 views

V.S. 2013: Problems with Feature

I have a problem with the features. When i double-click the Feature1, I get an error : Sequence contains no matching data. I tried deleting the directory ...
0
votes
0answers
97 views

Getting the error Request for the permission of type 'System.Data.SqlClient.SqlClientPermission,.." failed

I created a SharePoint 2013 farm solution, and inside it I created a visual web part. the visual web part is calling a class (inside the same project) that is in turn executing an ADO SQL command on ...
1
vote
2answers
1k views

Causes of “The Web Part you are connecting from does not allow authoring of connections”

When I add my provider and consumer web parts to a web part page (following Walkthrough: Creating Connectable Web Parts in SharePoint Foundation) I find that the 'Connections' option on my webpart is ...
0
votes
0answers
16 views

clear session in SP 2007 site logout

I have created a webpart for SP 2007 which uses s session, how i can clear this session on site logout? It seems like SP defaultly not clearing any session on site logout.
0
votes
1answer
16 views

Cannot deploy visual webpart from sandboxed Sharepoint 2013 solution

I'm trying to deploy a visual webpart to SharePoint 2013 site from sanboxed solution. My webpart RSSNews.ascx (it doesn't have custom code behind): <%@ Assembly ...
1
vote
2answers
46 views

Find a div in a SharePoint page from code behind [Visual Webpart]

I have created a custom page layout with a div tag in it. I am trying find this div from a visual webpart code behind,but the control is always null. Page Layout <div id="abc" ...
1
vote
1answer
22 views

Submitting data from PeopleEditor control in Web Part gives error

I have a web part that submits data to a list and it uses a PeopleEditor control for selecting users. Once user is selected, when I submit the form it gives following error Invalid data has been ...
0
votes
1answer
21 views

Migration Visual Web Part from Sharepoint 2010 to Sharepoint 2013 - Web.Config error

I am migrating a webpart with 2 External List and 9 normal list from Sharepoint 2010 to Sharepoint 2013. After migrating i Geting this error. May be I hard coded something in Web.config file. Please ...
2
votes
1answer
48 views

Getting this error: $Resources:core,ImportErrorMessage;

I have created a Visual Web Part in SP2013. But when I am adding the webpart to the page it is giving me the following error "$Resources:core,ImportErrorMessage;". And the error only comes when I am ...
1
vote
1answer
34 views

Migration Visual web part from Sharepoint 2010 to Sharepoint 2013

How do I migrate Sharepoint Visual Web Part from Sharepoint 2010 to Sharepoint 2013. I know I should migrate all list, and whats more. How upgrade the C# code to work with Sharepoint 2013. Please ...
0
votes
1answer
20 views

FormField in visual web part not appearing

I have a web part in which I am showing the field values of the List Item. I want user to be able to edit the properties of the list item from web part only. To give the SharePoint like UI I want to ...
0
votes
0answers
47 views

OrderBy in CAML query (using Camlex) cause an error

I'm developing a visual web-part for SharePoint 2010. I've to do a query with OrderBy clause. This is my code: if (ViewState["sortExp"] == null) { sortCol = "Column_x0020_A"; } else { ...
0
votes
1answer
37 views

GetFieldByDisplayName error in CAML query

I'm developing a web-part for SharePoint 2010. I've to sort a SPGridView so I use SortExpression. I execute a CAML query in this way and then I bind data to SPGridView: SPQuery query = ...
0
votes
0answers
34 views

dynamically loading images from list

I have below piece of code in html and i want to get images from list . But sizes of section under which images are defined are different. So i am not sure how can i acheive this dynamic loading of ...
3
votes
2answers
101 views

Site Columns JSLink doesn't work in custom XSLTListViewWebPart

I have a site column (Status) that I've added JSLink to, that runs my custom JavaScript. This works fine on lists. The JavaScript changes the text to a colored image. I've then created a Visual Web ...
0
votes
0answers
13 views

Problem with Parameters in Visual Web Part

Parameters are very clever choice, but after midnight they are changing the values again into null value. How to protect them from changing. I am using five parameters, how to protect them from ...
1
vote
0answers
29 views

Using jquery fileopen dialog in webpart

I am using webpart to upload some files to list in sharepoint. I have got code to upload data to list. What i need is Jquery control to select file and then i will use that file to upload to my list. ...
0
votes
1answer
122 views

Upload file in sharepoint

I am creating webpart to upload file. I created asp button: <asp:Button ID="txtUpload" runat="server" Text="Upload" OnClick="txtUpload_Click" /> Then on click event of button i write ...
1
vote
1answer
302 views

Create WSP package in Visual Studio 2013

How to create WSP Package in Sharepoint 2013 by Visual Studio 2013. If I see to bin catalog there are two catalog more. The: Debug Catalog Release Catalog How to prepere a WSP Package, to wsp ...
1
vote
0answers
52 views

SP2010 - Visual Web Part - Storing metadata in folders in document libraries

I want to store a number to folders to enforce ordering. I noticed these three pages Get Property Set Property Add Property And I want to know if it's possible to use these to add a number to the ...
0
votes
1answer
29 views

“0x80070003” error getting while I custom web part in SP2013

"0x80070003" error getting while I retrieve Only document from the document library In scop="Recursive all" in caml Query and that caml Query data pass in the Webpart...but while I Insert that custom ...
1
vote
1answer
102 views

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

I have a superb Web Part downloaded from Codeplex which essentially is a Countdown Timer in jQuery. (spCountdown) The code itself works perfectly, however I want to tweak it, in what I thought would ...
1
vote
0answers
58 views

Error While Adding Visual Web part To Master page in 2013

I am Trying to add a Visual Web part with Custom css and Java script in it. When i try to add in a layout page It works fine. But when I used the below steps ...
4
votes
1answer
2k 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
25 views

Set diffrent value for Sharepoint custom property of same web part in multiple diffrent pages

I have visual web part and i am attempting to set custom property unique value on each pages. For example i have two aspx pages. Deal.aspx and Fund.aspx. Both page is having same web part used. When i ...
1
vote
2answers
2k views

Visual WebPart does not recognize tag for resources

I created a visual webpart from VS2012. The headers of the ascx page are <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %> <%@ Assembly Name="Microsoft.Web.CommandUI, ...
1
vote
2answers
61 views

Webpart dropdown menu appearing elsewhere

As shown in the picture the dropdown menu is appearing elsewhere instead of appearing below the drop down arrow.This happens only when using in IE.. IE 8-11 all have this same issue. How can i solve ...