web-parts

Sharepoint: Best way to display lists of non-Sharepoint content with "compatible" UI?

I've built a web part for Sharepoint that retrieves data from an external service. I'd like to display the items in a way that's UI-compatible with Sharepoint (fits in with its surroundings.) I'm aware of the "DataFormWebPart" but was unable to get one working properly. It requires a valid DataSource and I was unable to build one from...

Can I make a SharePoint Image Web Part clickable to link to another page

The Image Web Part doesn't seem to have an href attribute that I can set. Is there something I am missing? ...

SharePoint error: "Cannot import Web Part"

I have a web part that I've developed, and if I manually install the web part it is fine. However when I have packaged the web part following the instructions on this web site as a guide: http://www.theartofsharepoint.com/2007/05/how-to-build-solution-pack-wsp.html I get this error in the log files: 09/23/2008 14:13:03.67 w3wp.exe (0...

Develop SharePoint web parts in ASP.NET

I have been asked to develop some usercontrols in ASP.NET that will at a later point be pulled into a SharePoint site as web parts. I am new to SharePoint and will not have access to a SharePoint server during the time I need to prototype these parts. Does anyone know of any reasons that this approach will not work? If this approach is...

Communicate with Document Library Browser Web Part

Background My task is to, in SharePoint, show an image of a process map which should be clickable. Think of an imagemap in html. Some areas take you to other process map images and other brings up a pop-up window. "Connected" to each process map is a set of documents. These documents are stored in a document library. There are one proc...

How to create a dashboard user interface using ASP.NET MVC?

I am currently building an application using ASP.NET MVC. The data entry pages are fairly easy to code, I just make the Model for the page of the type of my business object: namespace MyNameSpace.Web.Views.ProjectEdit { public partial class MyView : ViewPage<Project> { } } Where I am struggling is figuring out the best wa...

Reach Session in a UserControl loaded in a WebPart

I have a WebPart in MOSS 2007 that sets a variable in Session. Later, when loading a Webpart that loads a UserControl, the Session is NULL (not just the variable) The Webpart that loads the UserControl have access to Session properly. The Webpart "lives" within a ClassLibrary DLL, the UserControl are part of a WebApplication. It seems...

Are ASP.NET Web Parts a viable technology for implementing a portal architecture

Web parts seem to be used extensively in Sharepoint related development, but examples of using them in asp.net webforms applications are few and far between. I'm implementing a domain specific portal framework and like the "widgetlike" functionality in iGoogle or pageflakes and would like to get that kind of feature in my application. ...

What are some good techniques for performance testing SharePoint web parts and controls?

This is a question about performance testing specific to SharePoint web parts and controls (although standard ASP.NET methods would be applicable as well). I'm wondering what are some good techniques, considering factors such as: caching (what and when should you cache?) load balanced servers (storing state) interaction with other part...

Possible to load a web part inside another?

So, this is what we want to do: We want to have a generic web part with a custom frame around it and then dynamically load other web parts (frameless) inside it. Would this at all be possible you think? A bit like Jan Tielens SmartPart, only not for ASP.Net User Controls, but for other Web parts... ;) Edit: We've been able to do this no...

SharePoint: Do not see any Filter Web Parts

Hi, In the official Office 2007 site there are numerous reference to Filter Web Parts. When I try to add one of them, the Web Part list in my Sharepoint doesn't show any Filter Web Parts. Please post if anyone experienced the same and any resolution. Thanks ...

Sharepoint: how can i find all the pages that host a particular web part?

As the question says - is there a way to determine which pages are including my web part? ...

Adding presence indicator to a custom web part

I have a custom web part which is generating some user data. I have added the appropriate code to output the standard presence icon and menu however this is acting rather stangely. The rendered html of my web part is as follows: <span> <a href="http://mysite/Person.aspx?accountname=USERID"&gt;USERNAME&lt;/a&gt;&amp;nbsp; <i...

Why does RunWithElevatedPrivileges fail to execute?

I'm trying to make a web part that greps user comments and stores it in custom list, I wrote this code to add a list to the site once the web part added to the page, [Guid("c314a0e8-0210-4064-b79e-bfd3594c6083")] public class CommentWriteSpace : System.Web.UI.WebControls.WebParts.WebPart { SPSite site = null; SPWeb web = null; ...

Is there a way to rebuild/repair ASP.Net personalization tables without losing the data inside?

I inherited an Asp.Net app that uses ASP.Net membership services. I am trying to add web parts with personalization to the site, and am getting a lot of errors. It looks like the tables generated by Aspnet_regsql.exe have been changed - probably copied at some point in the past using "select into" causing them to lose all their indexes...

Web Part connections in site definitions

I have requirement of specifying web part connections in onet.xml. So when site is created using this site definition the said web parts are already connected and ready to use. Which properties I need to specify for that particular web parts in onet.xml. ...

Dynamic web parts creation

Hello, I have a dropdown tat contains values for the webparts to be added. I have a button called select. When a user clicks that button, the value from dropdown must be taken and a web part must me created and and put into a web part zone at a different div. Can anyone help out in this issue? ...

How to display XML returned by SharePoint for web parts?

Lately I've been doing a lot of custom styling in SharePoint by modifying the XSL used to display various web parts. Knowing what the actual XML looks like, including which elements have actual values, really helps when working in the XSL. I've discovered a way to show this XML when using Ontolica web parts, but not when I'm using the ...

Adding custom properties to a site which are availble via code

Hi All, I have been asked to do something and i am very new to Sharepoint development and customisation so am a bit unsure how to go about it, or if it is even possible. The brief is to create a web part that shows a list of sub sites of the current site, i have messed around and have created a web part which does this. The second par...

ASP.NET Web Parts: Drag and Drop Support in Non-IE Browsers

I have been using web parts on my site since ASP.NET 2.0 came out. Dragging and dropping web parts works great in Internet Explorer, but it doesn't work at all in Firefox, Chrome, or Safari. I recently upgraded the site to ASP.NET 3.5 SP1, but I am still unable to drag and drop web parts in non-IE browsers. How can I enable drag and dro...