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

learn more… | top users | synonyms

0
votes
0answers
14 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
57 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
42 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
19 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
15 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
34 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
18 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
46 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
17 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
31 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
33 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
40 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
30 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
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
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
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 ...
3
votes
2answers
86 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
27 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
71 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
121 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
53 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
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 ...
0
votes
0answers
88 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
24 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
54 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
26 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
86 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
219 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
45 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
27 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
29 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
48 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
72 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
92 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
97 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
94 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
70 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
86 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 ...
0
votes
0answers
150 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
182 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
95 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
65 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
30 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
4
votes
0answers
95 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
164 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 ...