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

learn more… | top users | synonyms

4
votes
0answers
87 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
377 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: ...
2
votes
0answers
55 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 ...
2
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 ...
1
vote
0answers
22 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
42 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
85 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
87 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
53 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
473 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
296 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
98 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
478 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
51 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
478 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
44 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
121 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
269 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
448 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
187 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
110 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
235 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
256 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
59 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
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
14 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
27 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
31 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 ...
0
votes
0answers
53 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
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
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
0answers
40 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
24 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
23 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
130 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
133 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 ...
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
0
votes
0answers
80 views

Show all Lists of current site in custom web part properties in SharePoint 2013

I have been trying to load all the SP Lists of current site in web part properties, but i just found out that there is no cs file of the web part in 2013, has the concept of web part properties ...
0
votes
0answers
76 views

Please wait message while page with visual webpart is loading

I have a page which consists of a Visual webpart. The user goes to the page by clicking on the Sharepoint default side nav. The page I mentioned earlier takes a while to load and I would like to have ...
0
votes
0answers
64 views

Issue when *directly* deploying a Solution on SharePoint 2013

I have been having trouble deploying a WSP file (a solution containing visual web parts and [primarily] core backend logic) to our SharePoint 2013 server. Deploying through Visual Studio works ...
0
votes
0answers
35 views

URL field in sharepoint : Points to Control Template when http removed

We have a requirement to display urls based on logged in user . We created a single line of text for url storage in sharepoint list . C# code pulls the data and displays correctly . All is well when ...
0
votes
0answers
22 views

How to clear custom property value in web part

I have created a custom property ListName in a Visual web part that takes string as input. I am using a check condition in page load and if that check fails, I want to clear the text box (custom ...
0
votes
0answers
178 views

Attach file to list item in SharePoint 2013 Sandboxed solution

I have developed a visual webpart in Sandboxed solution for SharePoint 2013/Online. I am trying to add an attachment to list item at the time of creating the item using Client Object Model. I have ...
0
votes
0answers
42 views

Add Property page value to sharepoint ASP page

I have a simple SharePoint 2013 webpart that will simply use the marquee tag to scroll text across the part. I have one personalization part in the configuration section: the text to scroll. The ...
0
votes
0answers
21 views

Web part mysteriously prevents saving edits to webpart-page

I've got a mystery problem with a visual webpart in SP2010. The webpart itself is working perfectly. Weird thing is that after you add an instance of this particular webpart to a page (by editing a ...
0
votes
0answers
192 views

Sharepoint web control in visual web part - value cannot be null, parameter name: input

I create a visual web part to change edit form of Task list. When I click Sharepoint:Savebutton i get error: Server Error in '/' Application. Value cannot be null. Parameter name: input ...
0
votes
0answers
69 views

How to know if the expanded node in a TreeView control is a list node or a folder node

I have created a tree view structure using TreeView control in Visual Web part. This structure shows all the document libraries and the folders inside it. Is there a way to know whether the expanded ...
0
votes
0answers
43 views

Getting error when trying to open a spsite in Application page

I am Trying to open an spsite in Application page like Sp context.current.web but here spcontext is null so i tried like giving whole URL path via a string .Here error coming as 404 file not found ...
0
votes
0answers
33 views

Plain HTML css-links and script-links in a Visual Webpart? (sp2010)

The recommended way of adding js and css to any Sharepoint component is using Sharepoint:CSSLinks and RegisterClientScriptBlock. But I hate it! I like being able to use as much pure HTML as possible, ...