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

learn more… | top users | synonyms

8
votes
0answers
227 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 ...
3
votes
0answers
506 views

Update panel not working in Safari browser

I have a visual web part in which one button and a label inside an update panel. When I run the web part in IE and Firefox it works fine but it does not work in Safari. My declarative part is: ...
3
votes
0answers
2k views

Why Sharepoint FormField's ID is parametrized and how it can take different values after its initial creation?

In SPD 2010, on designer surface of a web part page I insert DataFormWebPart by: "Current Data Source" ("Data Sources Details" Task Pane) --> choose rows --> "Insert Selected Fields As.." --> "New ...
2
votes
0answers
70 views

Chart control data points not visible - Visual WebPart

I have created a Chart control based visual webpart. I have used custom labels for both x and y axis. The problem when i am trying to plot xy values, it is not visible in the chart. Code ...
1
vote
0answers
20 views

Sharepoint SandBox Solution is not Working in SharePoint online (Custom action)

I have created a sandbox solution in sharepoint 2013.I have added Custom action and Visual web part in to the solution. Custom Action Code as following : <?xml version="1.0" encoding="utf-8"?> ...
1
vote
0answers
15 views

How to configure SMTP in Sharepoint 2010 Foundation on Windows 7?

I am having the functionality to send email from custom WebPart(C#) using configured SMTP on SharePoint 2010. Wherein my development environment, having Windows 7 OS configured with SharePoint 2010 ...
1
vote
0answers
27 views

Office 365 - Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain

In Office 365 environment, I have received the below error while submitting the form which was developed by Sandboxed Solution. Web Part Error : Unhandled exception was thrown by the sandboxed ...
1
vote
0answers
13 views

Set Timeline XML with other Timeline XML

I have two timeline webparts: Source and Destination. I have to 'export' or duplicate the Source Timeline View in the destination Time Line. XmlDocument timelineXML = new XmlDocument(); ...
1
vote
0answers
23 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
96 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
40 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. ...
1
vote
0answers
117 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 ...
1
vote
0answers
182 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 ...
1
vote
0answers
133 views

How to show sorting arrow in SPGridView

I have an SPGridView control in a visual web part. I am trying to implement sorting functionality, but the grid control is not displaying the sorting arrow next to each column header. How can the ...
1
vote
0answers
79 views

SharePoint 2010 and 2013 can't not find SPLimitedWebPartManager

I trust this is one of the most common question when approaching with adding webpart to you sandbox solution through SharePoint 2010 or SharePoint 2013 I have researched google for a while and can't ...
1
vote
0answers
969 views

Unknown server tag when using visual webpart in masterpage in sharpoint 2010

This is just a basic question. I have a solution say "My.Solution".In this I have a project say "My.Project". I added a visual webpart say "Menu". The namespace of the webpart is like ...
1
vote
0answers
477 views

LINQ DataSource DataContext: Could not load type

I made a very simple webpart with a grid view and and a LINQ to SQL data context object to surface some employee information for a phone list. I was able to databind the grid view directly to LINQ ...
1
vote
0answers
141 views

Modify SharePoint sandbox manifest.xml

I need to modify the SharePoint sandbox manifest.xml. Can any one help me with how I can do this?
1
vote
0answers
543 views

Update panel issue in visual web part

I have created a web part using update panel and the page where I placed that web part there is also a task list with timeline view. My problem is that whenever my update panel gets posted back the ...
1
vote
0answers
54 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 ...
1
vote
0answers
650 views

CreateChildControls() in Visual Web Part in SharePoint 2010 called twice

(x-post from http://stackoverflow.com/q/17065543/1943) I have a Custom SharePoint 2010 Visual Web Part which I've realized is calling the CreateChildControls() method twice. I've tried setting the ...
1
vote
0answers
47 views

Issue between user control and Visual webpart

I have user control in my master page (countrycontrol.ascx) on clicking the user control It will show links, user is allowed to select the country based on the selected country the visual webpart need ...
1
vote
0answers
132 views

Import Error on ChartDataProvider Webpart

My Sharepoint project contains a visual Webpart which retrieves data and works fine. In addition to that, I want to display some Chart webparts which visualize this data. In order to do so, i added a ...
1
vote
0answers
314 views

Change month in SharePoint MonthlyCalendarView control

How to change month in SharePoint MonthlyCalendarView Control? It seems, there is no way to change month in calendar or change view of calendar.
1
vote
0answers
548 views

Getting exception while save linq query result into ViewState

Following is the code SPList splist = web.Lists["MyList"]; var query = from SPListItem oItem in splist.Items.OfType<SPListItem>() where ...
1
vote
0answers
196 views

SPQuery on ECT very slow

I am creating a custom web part which is supposed to return results from an External Content Type(ECT) List which contains almost 40,000 records. There are multiple ways the items can be searched and ...
1
vote
0answers
115 views

Powerful list filtering

I need to extend the functionality of the default list (specifically for a document library) to include more powerful filtering. This includes being able type free text search and to have filters ...
1
vote
0answers
240 views

Flexibility to edit a webpart page via an iframe

I'm working on a project in which I'll be using a couple iframes. It's going to be a webpart which will display some custom system pages in iframes. One of my goals is to see if it'll be possible to ...
1
vote
0answers
263 views

Getting at InfoPath/form library data using LINQ to SharePoint

I'm teaching myself some basic SharePoint stuff, coming from three-tier ASP.NET, and before that, Java background. I've been trying to figure out how to do things "the SharePoint" way, rather than ...
1
vote
0answers
60 views

Retrieving item values from a workflow task dialog box to put in a web part in the same box

I have implemented a workflow and now I would like to develop a web part to be used with the Edit and View forms that are loaded in the modal dialog during, say, an approval task. May I know how do I ...
0
votes
0answers
16 views

How to get manager email id of selected user in people picker control?

I want to send mail to selected user in people picker control and CC to the his manager. Able to send the email to user. But how to get his manager email Id in C# Web part? Basically How to distribute ...
0
votes
0answers
11 views

How to import custom webpart into a webpart zone in an application page using Element.xml?

I have a custom webpart and an application page. I want to add this webpart to the application page using webpart zone. I have tried to achieve this using element.xml but it gives me error ...
0
votes
0answers
14 views

Web part with buttons like a list

Using a web part to mimic a list, how do I create buttons New item and edit in a web part? These buttons should look and work exactly like in a list.
0
votes
0answers
41 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 / ...
0
votes
0answers
25 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- ...
0
votes
0answers
54 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
0answers
33 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
0answers
116 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
0answers
10 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
32 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 ...
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
32 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
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
23 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
0answers
119 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
0answers
51 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
15 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 ...
0
votes
0answers
30 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
51 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
0answers
689 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 ...