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

learn more… | top users | synonyms

1
vote
1answer
216 views
0
votes
1answer
91 views

Manage photo in sharepoint 2010

I have a list for students. I want to keep photos of each student. How can i do this? Do I need to add a field to Student custom list? Please help me with correct approach. I am using a visual webpart ...
0
votes
1answer
1k views

In SharePoint 2013, How do I use the person field (people picker) in a custom web part?

Sharepoint 2013 gives a pop up when the cursor is kept on top of a users name ( the pop up allows to connect to email, lync, etc) I need to add that field in my custom webpart... Is there any way ?
2
votes
5answers
2k views

How to detect where a memory leak is in my application?

I have a web part that loops through web apps, sites, and webs. I'm using DoesUserHavePermissions() to check whether or not the user has access to the site. I'm getting an error and I've made sure to ...
0
votes
2answers
56 views

Not able to add webpart to page using chrome

I created a visual webpart for SharePoint 2007, now I am able to add it to page using Internet Explorer but when I try to add it to page using chrome it doesn't add it or do a page refresh, I followed ...
1
vote
1answer
2k views

Use a querystring parameter in a CAML Query

I want to pass a parameter between two separate web parts I am developing. In my 'Detail' webpart i need to build a CAML query to display the correct profile based on their name. pdquery.Query = ...
0
votes
1answer
294 views

return a list view in visual webpart

In have the following code which returns a list and binds it to my repeater. Dim Partnership As SPList = web.Lists("PartnersMedia") rptPartnership.DataSource = Partnership.Items.GetDataTable() ...
0
votes
2answers
410 views

Does web part property validation only work for visual web parts?

Suppose I define a web part property like this: private string _myString = "default value"; [WebBrowsable(true), WebDisplayName("My string"), WebDescription("A simple bit of text to ...
2
votes
1answer
644 views

Displaying SPChange data in visual webpart

Here is some code I've been playing with to display all items that have been changed in a web and all subwebs in a visual webpart (it grabs a heap of info and chucks it in a label): protected ...
0
votes
0answers
461 views

Advanced filtering XsltListViewWebPart with custom webpart

I have got simple list rendered by XsltListViewWebPart. I would like to create additional filtering options using custom visual web part to provide list item id's to filter XsltListViewWebPart on same ...
2
votes
4answers
2k views

Refreshing page or making it to respond after downloading the file. All happening in Webpart

I'm having a Visual Webpart that allows user to select Managed Properties and find out what is stored inside it. The result is displayed inside a gridview which he/she can export it to excel. It is ...
1
vote
1answer
238 views

Refresh a list webpart to reflect the item added developed using visual studio 2010

I have a visual webpart that list the students. Also have a webpart to add/edit student. after deploying the application, I created new webpart page and added CreateStudent webpart in a zone and ...
1
vote
2answers
1k views

Upload photo to a custom list using visual webpart in sharepoint 2010

I have a list, ListPersonalDetails, for storing personal details of students. It has fields like firstName, lastname, address etc. It also contains a field to store the photo which is of type image. I ...
2
votes
2answers
837 views

sharepoint webpart property disappear after a day (C#)

I developed a custom webpart with a webpart property with some textboxes and it works partially. If I deploy the project, the written text in the property is away. This is ok. But my MAIN Problem ...
4
votes
2answers
1k views

Create a custom error page to redirect to instead of generic AccessDenied.aspx?

When a user has not been given permissions to a particular site they receive the ugly "Error: Access Denied" page. Is it possible to capture this on one particular team site (via custom webpart) and ...
0
votes
1answer
1k views

Retrieve Title, Image and URL from a Custom List and bind to repeater control

I am doing custom visual web part(Sandboxed) developement. I am facing a little hurdle as I unable to retrieve Title, Image and URL columns from my custom list and bind it to a repeater control. Also ...
1
vote
2answers
2k views

Deploying web part from Visual Studio?

I exported a Core Search Results Web Part and created a new Visual Web Part in a Visual Studio project. I have added some code to the .cs page and the code for my exported webpart to the .webpart file ...
0
votes
0answers
142 views

Webpart with update panel is deleting the text in IE's tab on every request

I have a web part that display information to the user. It lives in the pages: /Pages/default.aspx The web part was working fine until I wrapped the grid in an update panel. Now when you sort or ...
1
vote
1answer
61 views

Web Part Resources e.g. Images and Scripts [duplicate]

What is the best practice for including resources such as Images / Stylesheets / Scripts in a custom visual web part (built with Visual Studio)?
0
votes
1answer
317 views

Need to produce custom html out of VIsual Web Part

I have to use Visual Web Part that retreives data from sharepoint list and produces some custom html. I want then to render that custom html as part of the Visual Web Part. Here is the html that I ...
1
vote
1answer
1k views

Overriding Sharepoint SaveButton

Fairly new to sharepoint, and working on a project which involves making custom webparts to enable extra functionality in new/edit/display webparts. I have a working overridden SaveButton in the ...
1
vote
0answers
178 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 ...
5
votes
1answer
2k views

How to check for IsPostback in Visual Webpart

I have created visual webpart in SharePoint 2010 which will generate class file for class derived from Webpart and second for UserControl. Now I have TabStrip Control on .ascx markup. Now I want to ...
1
vote
1answer
1k views

how to Render Controls from CodeBehind into a specific Panel

I'm in the process of working thorugh Microsofts video tutorials for developing on Sharepoint. My actual small project is to create a visual Webpart which displays a list of all registered users with ...
3
votes
1answer
226 views

Error: Sharepoint 2010 Web Part appears to be causing a problem. Invalid temp directory in chart handler configuration

I have a sp2010 website where I am trying to use a network path for the images as I have a WebFarm which is loadBalanced using CISCO ACE appliance hardware (without IP Stickiness). The reason I am ...
0
votes
2answers
531 views

Custom Visual Web Part editable CSS

I am making a custom visual web part in Visual Studio 2010 and I am trying to add a editable CSS style sheet to it. What I mean is I want to make a property that the user can access through the edit ...
1
vote
1answer
513 views

Permissions to write into but not view a list?

I have a custom web part on my home page that is essentially a textbox and a button for submitting suggestions. The suggestions are written to a custom list named "Suggestions". Now, I would like ...
1
vote
3answers
4k views

Visual Web Part control for select user/group?

Does somebody know exist a control for a visualwebpart that allows to select an user/control? I am creating a form using a visual web part and i want to allow to select an user. I am searching for ...
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 ...
0
votes
3answers
546 views

UserProfileManager in Console Application

I have code that works just fine (visual web part). I had deleted the testing console application, and now I have need for it again. The browser will open up once running the console application, but ...
1
vote
1answer
1k views

Causes of “The Web Part you are connecting from does not allow authoring of connections”

When I add my provider and consumer web parts to a web part page (following Walkthrough: Creating Connectable Web Parts in SharePoint Foundation) I find that the 'Connections' option on my webpart is ...
1
vote
1answer
151 views

How to restore to the smaller size of image control visible at designer?

All of sudden, few hours ago, I started to have a weird problem in all sites of my Sharepoint Server 2010 dev machine. In any of old and new, built-in and custom WebPart pages of list views, ...
2
votes
5answers
3k views

Adding new webparts to an already deployed solution

I have a webpart project built in visual studio 2010 and it has been deployed successfully to my production environment. I recently had to make some changes to the webpart and also needed to add a ...
1
vote
0answers
104 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 ...
2
votes
1answer
600 views

Content slider in jQuery doesn't function properly in webpart

I have created a test HTML page that contains the code for the web part in question. From the test page, I can use the scrolling feature just fine as it works as expected. When I take the same code ...
1
vote
1answer
267 views

Display the actual attachments(Image) in Announcements list?

I have a custom web part on my home page pulling data from the announcements list. When a user clicks on the Title (I have created it as a link) it directs to this page: I would like to modify the ...
1
vote
2answers
768 views

Share Data Between Visual Web Parts on different pages

I have a need to share information from Web Parts on one page, with Web Parts on a second page. SharePoint does not have a default Session State, and let's say for arguments sake I cannot enable ...
1
vote
2answers
376 views

Getting ECMAScript Client OM Intellisense to work in ASCX/JS

I can't for the life of me get intellisense working for the Client OM. It seems to work on another box I have tried so I'm wondering if I have found some kind of bug/configuration issue. I have tried ...
0
votes
1answer
555 views

Localize a sandboxed visual webpart

I am trying to localize a sandboxed visual webpart (part of the SP2010 development powertools released by MS), but as soon as I add <%$Resources:RESXFILE,RESOURCEKEY%> to for instance a ...
3
votes
2answers
2k views

Page.ClientScript.RegisterClientScriptInclude in Sandbox?

I'm trying to use jQuery in a Sandboxed Visual WebPart (2010): protected void Page_Load(object sender, EventArgs e) { string jQuerySrc = Page.ClientScript.GetWebResourceUrl(this.GetType(), ...
0
votes
4answers
520 views

How to know if JS file has been registered in a visual web part?

Let me explain the situation: I have a Sharepoint 2010 solution in VS that contains: Some Model classes A LINQ-to-SQL data context A WCF REST service 3 Visual web parts The web parts calls some ...
3
votes
1answer
875 views

Setting the DisplayFormURL of a CalendarView item to an absolute URL, SPCalendarView control

Background: I have a WebPart that makes use of the SPCalendarView control and in it I add items (events) dynamically from different Calendar lists from multiple sites. like this (please note that I ...
0
votes
1answer
735 views

“LinkTitle” column from event list dose not render when added to a repeater control?

I have the following code to render the event Titles (the LinkTitle Column) in a custom web part: <asp:Label ID="Title" runat="server" CssClass="titleStyle" ...
0
votes
1answer
331 views

How do I retrieve the “Title (linked to edit)” column from event list to display in my custom web part.

I am creating a visual web part to display the calendar events in the form of an events list with custom css. The web part will be on the home page of my site. Here is what I have right now and it is ...
1
vote
2answers
2k views

Access denied in Sharepoint 2010 HTTP handler (.ashx)

I've developed a Visual Web Part for Sharepoint 2010 that includes an HTTP handler for some AJAX functionality. I followed this guide to accomplish this. I've createad a brand new SP 2010 web ...
0
votes
3answers
10k views

Cannot connect to the Sharepoint Site from Visual Studio 2010

I'm new to Sharepoint. I'm trying to create a simple webpart using Visual Studio 2010 but when I try to validate my Sharepoint Server (both VS 2010 and Sharepoint are present in two different system - ...
2
votes
2answers
2k views

Is it possible to use a DLL in a webpart that does not have a strong name?

My Sharepoint project has a webpart, which references dlls without strong names, which in turn further reference other dlls without strong names. Is it possible to add these dlls to sharepoint ...
0
votes
1answer
735 views

Rendering IMAGES (attached to announcement list) in my custom web part?

Please bear with me as I am brand new to the whole sharepoint world. I want to be able to display images that have been attached to OOTB announcement list in a custom visual web part I am trying to ...
1
vote
0answers
227 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
2answers
2k views

SPCalendarView control, same events are displayed each month in a VisualWebPart UserControl.ascx.cs file

I am creating a custom SharePoint Calendar to pull from multiple SharePoint Calendar Lists. In the markup I have the following: <SharePoint:SPCalendarView ID="EventsCalendar2" width="100%" ...