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

learn more… | top users | synonyms

0
votes
1answer
40 views

Creating Visual Web part for file upload

I am trying to create a visual web part to upload documetns using FileUpload control. Below is the working code for uploading a file. protected void UploadButton_Click(object sender, EventArgs e) ...
3
votes
1answer
25 views

multi checkbox webpart properties

I wish to provide option to Select multiple option in my webpart Properties. Below code only allows me to Select one option. How to Select multiple options? Private colorPicked As MyColors Public ...
0
votes
1answer
36 views

How To Move SharePoint App From Development Site To Production Site

I have created a SharePoint app in SharePoint online in visual studio. This consists of a client web part and a web app hosted in Azure. I have set up a development site and successfully managed to ...
0
votes
1answer
17 views

Deploy Web Part from Visual Studio to remote SharePoint [duplicate]

I've made a Visual Web Part in Visual Studio (non-sandboxed) that I could easily deploy & "debug" on my local SharePoint installation. I want to copy this web part to another SharePoint ...
1
vote
1answer
25 views

Populate Custom Web Part Property from List

I have a custom web part (Contact Info) with a property (Topic). The topic is a drop down list (ie behind the scenes its an enum type. What I would like is for the values of this dropdown property to ...
3
votes
1answer
67 views

Which is recommended form control to use in SharePoint?

When trying to develop Web Part or Application page or modifying existing SharePoint application pages like (user.aspx, create.aspx, etc..) From below list which control is recommended to use ...
1
vote
1answer
16 views

ObjectDataSource - schema seems cached - unable to refresh

Within a Visual Studio 2012 Visual Web Part, I've created a simple FormView referencing an ObjectDataSource to autogenerate an editable form. Creating this the first time, there was no issue. ...
0
votes
0answers
23 views

Updated DLL in Sandbox Solution upgrade not deploying to GAC

I have a sandbox solution that I am using to deploy a visual web part (among other things) to my site. I have already deployed one version of this web part, and I am now trying to add some controls / ...
1
vote
1answer
30 views

Visual Webpart Registration form where data is stored to SQL Database table on button click

Please give the snippet for Visual Webpart where data is stored to SQL Database table.I'm able to store it in list but i need to store directly in SQL Server database table on submit.
0
votes
1answer
19 views

Is there any reference such as MailKit to add in sharepoint 2010

I am developing a visual webpart in SharePoint 2010 project and I have to deal with emails in my visual part. I tried to add MailKit reference to my project and it keeps telling me that it work only ...
0
votes
1answer
68 views

If Page is idle for sometime any postback leads to whole page refresh in UpdatePanel

Within the solution there are two webparts, second is being shown within a modal dialog in first webpart. In second webpart everything is inside update panel(bad practice). When I open the second ...
0
votes
1answer
22 views

Error when I search for some specific words in SharePoint 2010

I have a custom webpart on the search page which is getting data from an external web service. I am getting the following error when I am searching for some specific words (e.g test) in sharePoint ...
0
votes
0answers
23 views

Creating Connectable Visual Web Parts

Could anybody tell me how to create connectable Visual Web Parts? I'have followed this link - Creating Connectable Web Parts - but it is refers to Web Parts and I wasn't succesful in my attempt- ...
2
votes
2answers
39 views

Cannot write file in a folder

I cannot write a file into a folder through some code in a VisualWebPart in a Sharepoint 2013 solution. I've given write permission to c:\myfolder to Everyone. The code I use to write is the ...
3
votes
2answers
151 views

Getting custom webpart property with JSOM

I have a webpart with a custom property setup like so: public static string TargetUrl; [WebBrowsable(true), WebDisplayName("My DisplayName"), WebDescription("My Description."), ...
2
votes
1answer
27 views

Top visited entries on site collection blogs

I want to develop a web part which shows the ranking of entries of a site collection. By now, I think a way to do this is to use a Javascript code added on the master page which adds a row to the ...
1
vote
1answer
34 views

JSOM peoplepicker 500 error

I am implementing a people picker on my visual webpart to allow users to query a list according to a person. My implementation is similar to the post found here, but when typing in the people picker I ...
5
votes
2answers
221 views

Dynamically get List ID from List Name

In my Visual webpart I need to, based on the name of a list get the ID of the list, dynamically. I'm using C#. How can this be done?
1
vote
0answers
21 views

How to create Visual Connectable Web Parts

I want to create a Visual connectable web part. Provider web part contains list view part and consumer web part is a normal User Interface screen which will get Record ID(Row ID) of selected row and ...
1
vote
0answers
64 views

How to pass ID of selected row in custom list view web part in label of share point 2013

I have created a XsltListViewWebPart using server side object. Now I have to pass the ID of the selected item into a label. I want to pass the ID without JavaScript. This is my code for provider ...
1
vote
1answer
25 views

Dynamic translation in SharePoint

I am using a visual webpart to show custom content that I get from a custom web service. I want to translate that custom content dynamically in SharePoint. Resource file is not an option since that ...
1
vote
1answer
57 views

Set DropDownList text and value c#

I am currently trying too develop a visual webpart for an on premise SharePoint environment. The webpart contains a dropdown which I need to set the text and value so that I can use this later as part ...
0
votes
1answer
45 views

SharePoint 2013 Empty Project - Page Load

I created a new SharePoint 2013 Empty Project in Visual Studio, I added visual web part. I want to write code at Page Load. But Page Load doesn't appear under my project. How to I find it?
0
votes
0answers
37 views

Connect List view web part as provider and Visual web part as consumer in SharePoint 2013

I have a page where i have added a list view. Now As per the selection of list item from list view i have to show values in my visual web part, So my list view will be the provider and visual web part ...
0
votes
1answer
97 views

Closing the Window from Visual Web Part Page in Chrome is not working

<script lang="Javascript"> function quitBox(cmd) { if (cmd == 'quit') { open(location, '_self').close(); } return false; } </script> <input ...
0
votes
0answers
7 views

Use site template as team site [duplicate]

I have created a site ,sub site,list and pages. Then saved it as site template. By using the site template I had created 2000 sub site in same site. If I modify a list or page the whole 2000 sub site ...
0
votes
1answer
103 views

Error when adding custom web part to a page

I have a web part I have developed in Visual Studio. It just goes out to a document library and gets all the items: SPListItemCollection collListItems = oDocumentLibrary.GetItems(); This works ...
0
votes
0answers
27 views

Why does marking an html element of type date “run at server” fail in Sharepoint 2010?

I thought HTML5 was backwards compatible - so why does Sharepoint 2010 knock me sprawling to the ground when I try to use the new input type "date"? That's apparently the problem here; my Web Part ...
0
votes
1answer
110 views

Visual web part, SharePoint 2013 with VS 2012. Gridview with paging , export to excel

Created a visual web part for SharePoint 2013 with VS 2012 template. Web part has gridview with paging enable. On the same I have a button for export to excel. Gridview works perfect , but when I ...
1
vote
1answer
37 views

Visual webpart cannot be added to anonymous website

We have an anonymous website (configured as shown in this blog on How to enable anonymous access in SharePoint 2013). If you make a new standard visual webpart (farm solution) and want to add it to ...
1
vote
1answer
51 views

SPSiteDataQuery for Task List not working

I am creating a visual web part for aggregating all task in all webs of a site collection I am using SPSiteDataQuery to get all tasks but it does not work for Task list i.e. Task List ...
0
votes
0answers
98 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
1answer
268 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
128 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
9 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
41 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
80 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
29 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
42 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
563 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
28 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
29 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
72 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
219 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
34 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
9 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
20 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
56 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
90 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
39 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 ...