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

learn more… | top users | synonyms

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 ...
0
votes
1answer
26 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
803 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
12 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
1answer
475 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
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
59 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
14 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
13 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
30 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
13 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
15 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
25 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
29 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
19 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
29 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
28 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
31 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
66 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
12 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
22 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
53 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 ...
0
votes
1answer
64 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
51 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
25 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
79 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
42 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 ...
3
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
23 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
52 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 ...
0
votes
0answers
10 views

Visual Web Part Help

How can I give my visual web part an content area that can be edited much like the content editor web part?
0
votes
1answer
24 views

What is the best Approach for Banner management(Slider)?

Im about to develop a webpart for banner (Slider) management, which is reading images from Image library and shows it in the webpart. I'm using Jquery to do this. What is the best way to pass the ...
0
votes
1answer
191 views

Fields validation with Javascript in custom WebPart - SharePoint Online -

I'm currently developing a SandBox WebPart for SharePoint Online (2013) which have two TextBoxes. I'm trying to add the following code for validate the Email and Subject TextBoxes once the Button ...
7
votes
3answers
10k views

Error occurred in deployment step 'Recycle IIS Application Pool': Object reference not set to an instance of an object

I get this error in the deployment step of a share-point farm based project. Most of the suggested solutions on the net are a simple Visual Studio re-start, however, a simple VS restart won't fix ...
0
votes
0answers
11 views

Custom Layout Makes problem to webpart(jquery)

I made a webpart that which is for FAQ,when user click it expand the answer,this is working with Default Layouts that come with SP.but i want to use my own Layout for this,when i put web part into my ...
0
votes
1answer
63 views

Add filter and pagination to CAML query

I'm developing a visual web part for Sharepoint 2010. I would display all documents from a specific DL, but this DL contains more than 7000 items. So I would like to add a pagination (show only 20 ...
0
votes
2answers
35 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
40 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
24 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
23 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
47 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 ...
0
votes
2answers
93 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" ...
1
vote
1answer
64 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
81 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 ...
1
vote
1answer
382 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: ...
6
votes
2answers
15k views

Difference between WebPart & Visual Web Part

I'm not sure how Visual Web Part is different from the actual Web Part in SharePoint 2010. Thanks!
0
votes
1answer
86 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 ...