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

learn more… | top users | synonyms

0
votes
1answer
28 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 ...
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
27 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"> ...
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
2answers
46 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
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
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
1answer
73 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
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
44 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
2answers
92 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
20 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
46 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
0answers
46 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
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
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 ...
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 ...
3
votes
2answers
100 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 ...
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
114 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
285 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
57 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 ...
0
votes
1answer
28 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 ...
0
votes
0answers
96 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 ...
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
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 ...
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
31 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
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
116 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
1answer
251 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 ...
0
votes
2answers
39 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
49 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
28 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
33 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
49 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
78 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
110 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
104 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
108 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 ...