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

learn more… | top users | synonyms

0
votes
1answer
47 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
29 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
2answers
655 views

CSS Styles in ASCX are not being Rendered

I have a Visual WebPart being used on a self-hosted SharePoint 2013 stack. Problem is that in the WebPart design file, I have a Style tag <style>.. with some definitions for how certain ...
1
vote
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 ...
1
vote
1answer
32 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 ...
0
votes
1answer
39 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
20 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 ...
3
votes
1answer
68 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
17 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
32 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
77 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
40 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
160 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."), ...
1
vote
2answers
3k views

How to get selected terms from Taxonomy web tagging control

I have created a web part in which there is one taxonomy picker control to enable user to select department. I want to store the selected term to the list column which is of type Managed Metadata. ...
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
35 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
225 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
66 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
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
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
58 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
46 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
39 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
105 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
108 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
31 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 ...
1
vote
1answer
38 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 ...
0
votes
1answer
115 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
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
2answers
224 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
283 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
133 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 ...
1
vote
3answers
5k 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
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
85 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
4k 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
30 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
593 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
1answer
2k 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 ...
13
votes
4answers
7k 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 ...