webparts

SharePoint WebPart Displays Twice - Help!

I am a SharePoint novice who is responsible for maintaining several sites. Recently, to organize a document library I opened it in Windows Explorer mode to drag and drop files. I do this frequently. I think I was moving too fast and inadvertently clicked something by mistake. A dialog box popped up asking about hiding Webparts. I th...

Dynamic SharePoint web part width and height

I am trying to dynamically adjust the width and height of a web part in a SharePoint web part page so that it fills up the entire available space. It appears that there is no way to choose a percentage for width and height from the web part property editor window in SharePoint. Also, trying to dynamically set it on the web part instance ...

Web Parts in ASP.NET 3.5

I'm trying to create draggable web parts in ASP.NET 3.5 but the thing just doesn't want to be dragged. I already tried the workarounds for making it compatible with Firefox, by using AJAX, but still doesn't work. This is code I have on my page: <asp:WebPartManager ID="WebPartManager1" runat="server"> </asp:WebPartManager> <uc2:...

Outlook Appointment from Sharepoint Web Part

Is it possible to create an appointment in Outlook from a custom Sharepoint Web Part programmatically? VB.Net links or examples would be most helpful. Thanks. ...

Web parts, dynamically created controls and eventhandlers

Hi, What is the best way to display, in a web part, dynamic tables where each cell can cause a postback to display a different set of data? For example, imagine some financial data: Table 1: Quarters in year | Q1 | Q2 | Q3 | Q4 | Things 1 | 23 | 34 | 44 | 32 | Things 2 | 24 | 76 | 67 | 98 | On...

Save web part configuration for a certain web part page

How can I save the configuration of a web part for a certain web part page in SharePoint? ...

Code Access Security and Sharepoint WebParts

I've got a vague handle on how Code Access Security works in Sharepoint. I have developed a custom webpart and setup a CAS policy in my Manifest <CodeAccessSecurity> <PolicyItem> <PermissionSet class="NamedPermissionSet" version="1" Description="Permission set for Okana"> <IPermission class="Microsoft.SharePoint.Security.SharePo...

Adding Web Parts to the Page Instance based on Page Layout using Feature.

I am trying to add the Web Parts to Page Instance of the Page Layout using a Feature.I know it should be through AllUsersWebPart element .I could find the reference of adding a Default Web Part to Page Layout (PortalLayouts feature does it). Also I have seen same in onet.xml . I wanted to know if it possible to create an instance of the ...

SPGridView - User selecting the columns

Is there a way to extend the SPGridView control in a webpart such that a user can select the columns that they want to display? Kinda like when creating/modifying a view for a list? Thanks ...

asp.net webpart title issue

We are looking for a solution to have rounded corners gradient on web part headers in Asp.net. Till now we are able to get the rounded corned with middle section filled with color, but need a solution to repeat the gradient image only on the center section of header (without overwriting the corners). It is working in Mozilla but NOT in ...

Blank popup in SharePoint

I am trying to connect a filter web part with a document list web part but the popup showing the options for filtering is blank. What I am doing. I have, as I described before, a QueryStringFilter web part (MOSS) and I want it to send the filter parameter to my document list web part (out of the box SharePoint). I go in to the edit mo...

ADAM Administration from SharePoint

We're in the process of building a MOSS site and one of the 3rd party tools we're using has a requirement of AD/ADAM as the authentication provider. We would like the user's to manage their own accounts (e.g. resetting passwords, registering new users, etc) so we're going to need WebParts for administering users in an AD/ADAM/LDAP DB. ...

GetUsageData() in a web part returns null

I am trying to display some SharePoint usage data in a web part. Here's my code: SPSite spSiteCollection = new SPSite(myURL) spSiteCollection.CatchAccessDeniedException = false; SPWeb spWeb = spSiteCollection.OpenWeb(); DataTable dtResults = new DataTable(); dtResults = spWeb.GetUsageData(SPUsageReportType.url, SPUsagePeriodType.lastM...

Sharepoint web part for editing list items

Hi I'm trying to create a web part that will enable users to edit items without ever leaving the AllItems.aspx page. The web part should have a similar functionality like the EditForm.aspx page. I've created a simple web part with a ConnectionConsumer("Row") that successfully shows the selected ListItem but I'm trying to figure out ho...

Setting web part title from resource file

I am trying to set web part the title and description through a resource file. My .webpart file has this content: <?xml version="1.0"?> <webParts> <webPart xmlns="http://schemas.microsoft.com/WebPart/v3"&gt; <metaData> <type name="MyWebParts.MyWebPart" /> <importErrorMessage>Cannot import this web part.</importErrorMes...

In a provider-consumer relationship how do let the consumer communicate through a custom interface

Currently, I've implemented a custom interface public interface IMessage { void PerformOperation(); } and I had the Provider Web Part implement this interface. I've also implemented a custom class to pass to the consumer web part. public class CustomDataPipe { public int referenceId { get; set; } } I was wondering if ther...

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 ...

Single responsibility principle and Sharepoint WebParts

I am developing a big number of webparts for a Sharepoint project. Many of them have the same parameters, and / or the same WebPart connections. I tried to apply the SRP to this case, but I was unable, because the class has to expose some methods. How can one overcome this in this case, and make a better design for the webparts code...

How to get current language or variation in Sharepoint (MOSS) 2007?

I would like to be able to query the current variation from within a web part or a control template so as to determine which language to use. If there is no variation then I will pick up the language from the request. Is this possible? Thanks Paul ...

Web Parts and Offering Files For Download?

Hi, Can anyone suggest the best way to offer a file for download within a SharePoint web part? The file will be dynamically created on request, but I still need to end up with the standard page being displayed as well as the file being downloaded. Cheers Moo ...