0
votes
1answer
48 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 ...
2
votes
0answers
21 views

Filter and sort related data from multiple lists

I've been working on ways to collect data from a few lists, do some calculations on it and set up user controls to filter/sort that data. Ultimately I want a web part (or similar) that a user can use ...
2
votes
0answers
28 views

convert to sandbox

how i can deploy a custom webpart solution inheret Microsoft.SharePoint.WebPartPages.DataFormWebPart as sandbox solution ? as microsoft documentation ...
0
votes
0answers
45 views

Sharepoint - Visual Studio 2012 Deploy problem

I'm having a problem, when I deploy my solution through VS2012 it looks like it wont update what I already have deployed, the changes I make on code wont take effect. I have the following scenario: 1 ...
0
votes
0answers
54 views

Sharepoint 2010 Mobile Adapter - Type cannot be found in the assembly

I am attempting to create a mobile adapter for a custom web part by following the MSDN instructions. I've created the web part, which displays a certain list in a branded view. Now I would like this ...
1
vote
1answer
59 views

How to edit web part from wsp solution

I have wsp files that contain some web parts that I need to change the functionality of. Without the actual solution or project files, using just the wsp, is it possible to edit them? I changed the ...
1
vote
0answers
246 views

why is Gridview moving infinetly to the right in visual studio 2010 designer view

In visual studio 2010, I have a gridview, with another inside, this has been working fine for 3 weeks, but today, it randomly begins to move to the right in designer, not when deployed, its jumping a ...
3
votes
0answers
208 views

Default Webparts not rendering in a RichHtmlField on a custom page layout built in Visual Studio

I have a bit of a conundrum.I've built a Visual Studio solution for SharePoint 2010. It comprises of a custom master page and a bunch of page layout templates. I'veAssembled a master pageAssembled a ...
1
vote
0answers
293 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
101 views

How to make a connection with SharePoint's simpleformwebpart?

I am using SharePoint 2010. I primarily work out of SharePoint 2010 Designer, and have some experience with visual studio 2010. I currently have a log-in page that my "Form" members go to, to log ...
0
votes
2answers
2k views

Visual Studio WebPart Not Showing Up in SharePoint

I created a simple WebPart in Visual Studio 2010 that I was using to test some functionality for a project. When the WebPart was built and deployed, the messages in the Output box in VS all state ...
1
vote
2answers
207 views

error when start new project in visual studio 2010

I am a new administrator to a SharePoint farm and I want to start developing *web-part*s for our sites. In our company we have installed SharePoint 2010 on Windows Server 2008 R2. And we have ...
1
vote
3answers
1k views

user control losing new values when saving

I have a user control in a web part that pulls data from a SP list and displays it in standard ASP.Net controls. When I save the data, the old values seem to get saved even if I had changed them. I ...
1
vote
2answers
66 views

sharepoint 2007 webpart question

I created a user control in visual studio I want to deploy to sharepoint 2007. This is my first one and I created the project using the repository pattern and POCO. Does sharepoint support this type ...
0
votes
3answers
2k views

How can I access Controls in VisualWebPart1.cs from UserControl.ascx

I make a Webpart and want to use the controls from the VisualWebpart1UserControl.ascx in the VisualWebpart1.cs. Is this possible? I wrote following code in the VisualWebpart1.cs: ...
1
vote
3answers
476 views

How can I debug sharepoint app attaching to IIS?

I built a HTTP Module, insert the DLL into the GAC, changed the webConfig Now , if on visual studio , I Attach to process W3WP , Open the web page where the module must work, I notice that ...
5
votes
2answers
9k views

Difference between WebPart & Visual Web Part

I'm not sure how Visual Web Part is different from the actual Web Part in SharePoint 2010. Thanks!
1
vote
1answer
82 views

Embedding images files in sandboxed webpart

Fairly new to SharePoint development but have been asked to into developing some simple web part features for a solution we're working on. I need to add some basic image/logo files into the .wsp for ...
0
votes
1answer
23 views

Local setup Vs live setup when developing web parts

I'm developing lots of web parts and of course i'm doing this all locally then uploading to the live online SP2010. I'm needing to write a lot of extra code to accommodate the file paths of images ...
0
votes
2answers
227 views

Opening a custom webpart created in 2005 in visual studio 2010

We are migrating moss 2007 site to SharePoint 2010. I am faced with a challenge with manual migrating a custom webpart from Moss 2007 to SharePoint 2010. When i open the webpart created in visual ...
1
vote
1answer
1k 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
1k views

Where to Place XML File to be Read by Web Part?

In another question, I finally found a way to deploy the XML file to be read via a Feature, to the _layouts folder: Feature Elements File Should I be deploying it there at all? I wasn't able to ...
0
votes
2answers
114 views

Deployment failure from Visual Studio 2010

Deploying a solution from visual studio 2010 to sharepoint foundation. The first time i deploy i get an error: Error 10 Error occurred in deployment step 'Retract Solution': Feature ...
1
vote
1answer
953 views

Submit selected items of ListView in Request (used in Webpart)

I develop a WebPart using VS2010 for a SharePoint page. My problem: I have to submit the selected items of the ListView to the WebPart code behind. The best solution would be to do it via the Request ...
5
votes
3answers
4k views

After retracting webpart solution webparts still showing up

I retract a webpart solution that was deployed via Visual Studio. Then when i edit a page for some reason the Custom category + the webparts are still being listed when i try to insert a webpart. ...
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 ...
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)?
1
vote
1answer
165 views

How to add web application (project from Visual Basic 2010) to Sharepoint Foundation

I would like to ask, how I can add web application (this is Visual Basic project) to my site collection in Sharepoit Foundation? Can I do this without create web part? If no or yes please tell me how ...
0
votes
1answer
96 views

Add content to Web Part without reloading

I am developing a Search Web Part for a WSS 3.0 site in Visual Studio 2008. The user types in their search criteria, then clicks OK. In the Click event, I am iterating through every Site Collection in ...
2
votes
1answer
3k views

Steps to convert application page to web part page from Visual Studio 2010?

I added an application page to my module and now I want to covert it to a web part page. In the code behind I changed the inheritance to WebPartPage. using System; using Microsoft.SharePoint; using ...
1
vote
1answer
522 views

Can I add Media Web Part to Application Page?

I am trying to implement a video library page in Sharepoint. What I have is a Video Library where each of subfolder will represent a playlist. I want to create an Application Page which will have a ...
2
votes
1answer
3k views

How do I use the form save button with a custom web part?

In order to familiarize myself with SharePoint development, I have created a custom web part to replace the default New, Edit, and Display forms of a custom list. Is there a way to use the already ...
3
votes
3answers
488 views

jquery projects and visual studio best practices?

Just curious how others are handling their jquery related solutions. It's obviously very easy to add a Content Editor web part with a content link to a source file. That file could have your ...
2
votes
2answers
1k views

FileNotFoundException from a Visual Web Part using an external class library

I have a solution and two projects in it: VisualWebPart and ProjectsLibrary VisualWebPart has a reference to ProjectsLibrary (tried to change Property for ProjectsLibrary Copy Local to false/true , ...
0
votes
2answers
453 views

How do use MyWebpart in EventReceiver?

I created a webpart with many properties. I want add it in EventReceiver and set properties. How do use MyWebpart in EventReceiver?
3
votes
5answers
12k views

How do I Modify Contents of a WSP File?

I've been provided a WSP file that contains a webpart created by another developer. I have been requested to make modifications to the webpart and repackage as a WSP file again. What steps must be ...
0
votes
1answer
1k views

How do I update/refresh a web part using an AJAX Update panel every 5 or 10 minutes?

I have a news and announcement web part that I would liek to refresh every 5 or 10 minutes so users get the latest information. I have a bunch of asp controls within an update panel's contenttemplate. ...
0
votes
2answers
340 views

Modify an existing item based on ID

The following code is what is I use to insert new list items: using (SPSite oSPsite = SPContext.Current.Site) ' using (SPWeb oSPWeb = oSPsite.OpenWeb()) ' SPList list = ...
0
votes
1answer
676 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
313 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 ...
2
votes
3answers
2k views

The <today/> tag not working in my CAML Query?

I am trying to retrieve the 5 most upcoming (with respect to expiry date) announcement list item "Title's".The query partly works but what it fails to do is include and display todays announcements as ...
0
votes
2answers
2k views

Populating a simple custom Event Web part that retrieves information from the OOTB calendar web part

I have a requirement to build a Event web part that shows the 5 most upcoming events and a see all link (that links to the OOTB calendar view). Here is a graphical representation: How exaclty do I ...
1
vote
1answer
1k views

How do I Retrieve the choice values of a column in a Document Library

I am fairly new to SharePoint development and as you may all know that it is very basic for one to know how to access fields in a choice column... My problem: I want to access the values of the ...
1
vote
2answers
1k views

Custom EditorPart - Make it look like regular category Appearance, Layout

I am creating a Custom EditorPart in VS 2010 and have it all working as I would like. The only issue I want to fix is that I want the custom parts to look like the Appearance and Layout sections. I ...
0
votes
1answer
796 views

attachment functionality with the custom webpart in sharepoint 2010

i want to implement a attachment functionality in a custom webpart, which functions that same way as it does in sharepoint OOB,...any suggestions?
2
votes
2answers
5k views

How do I add dropdown list of titles from list in the configuration part of a web part?

I'm programming a Web Part in Visual Studio 2010 with SharePoint 2010. It will post content that users choose from the configurable part when you click on "edit web part". I want add a drop down list ...
2
votes
1answer
439 views

Retrieve only the fields shown in userdisp.aspx from User Information List

I have built a Web Part in Visual Studio 2008 to show the current user's information (this is for WSS 3.0). I have no problem iterating through all the fields in the SPListItem, but I want to filter ...
1
vote
0answers
553 views

Creating Custom List Definitions that Use InfoPath Forms - Deploy everything using Visual Studio 2010

I'm trying to create a list instance from a list definition, all from a VS2010 solution and want to have custom InfoPath forms for the list instance. This article keeps popping around in my searches: ...
0
votes
1answer
1k views

How to add an instance of a custom webpart to a web page using PowerShell?

I found this article which does a very good job explaining how to add built in web parts (like the content editor webpart). Unfortunately when I tried to add my own I couldn't get it to work. I have ...
0
votes
2answers
2k views

Error: “Object reference not set to an instance of an object.” in VS2010 for MOSS 2007

I have been using VS2010 for developing web parts and deploying them to MOSS 2007 for quite some time. Unfortunately, I had to work on a fresh copy of WINDOWS with all software including MOSS 2007 ...