webparts

Best framework for implementing iGoogle or pageflakes (ASP.NET)

For my Enterprise software solution (so open source is not so good) I want to implement a flexible dashboard which is component base. So I can keep changing it by adding new components, withouth having to wait for the next version. my gold standard is pageflakes any suggestions? ...

Errors creating WebPart subclass in another assembly

I am trying to create a subclass of WebPart that will act as a parent to any WebParts we create. If I create an empty class in the same project, I am able to inherit from it as one would expect. However, if I try to place it in another assembly -- one that I've been able to reference and use classes from -- I get the following error: Un...

How do you disable a SharePoint webpart temporarily?

Can this be done by setting a property? I'd prefer that approach then to remove all security before re-adding it. (As this may have other consequences.) Another option I can think of is to replace the particular webpart dll with a temporary one, and restart the .net process, but that's not an approach I like at all. What other optio...

How do you include a JavaScript file from within a SharePoint WebPart?

We have a medium sized .js file that we include in our web framework that I am porting over to SharePoint. However, I'm not sure how to go about this or what the best practice is. This is for a framework solution that will be used by other client projects, so it's best for it to be self contained and deploy-able, rather than requiring ma...

At which point in the lifecycle does GetConnectionInterface get called?

I have this method on a webpart: private IFilterData _filterData = null; [ConnectionConsumer("Filter Data Consumer")] public void GetConnectionInterface(IFilterData filterData) { _filterData = filterData; } Now, before I can call upon _filterData, I need to know when i can expect it to not be null. When is this?! Without knowin...

How can you have SharePoint Link Lists default to opening in a new window?

In SharePoint, it is easy to set up a List webpart consisting of Links to other documents, folders, sites, etc. Unfortunately, when clicking these links, the default behavior is for the page to open in the current browser window. That is, it does NOT open the page in a new instance of the browser. This has proven annoying for a number...

Is there a reference for the SharePoint XSLT extension functions?

There are a couple of different .NET XSLT functions that I see used in the out of the box SharePoint web parts (RSS Viewer and Data View web part). <xsl:stylesheet xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:rssaggwrt="http://schemas.microsoft.com/WebParts/v3/rssagg/runtime" ...> ... ...

Sharepoint WebPart with AjaxToolkit's Accordion control

Do you guys have any resources on creating a Sharepoint webpart that uses the AjaxToolkit controls? I need to create a webpart that uses the Accordion control and I can't find any complete tutorial or walkthrough. I prefer a tutorial/article that doesn't use SmartPart. TIA! ...

ASP.NET - Add Event Handler to LinkButton inside of Repeater in a RenderContent call

I've got a Sharepoint WebPart which loads a custom User Control. The user control contains a Repeater which in turn contains several LinkButtons. In the RenderContent call in the Webpart I've got some code to add event handlers: ArrayList nextPages = new ArrayList(); //populate nextPages .... AfterPageRepeater....

Webpart feature not adding Description

I am adding a webpart to the webpart gallery as part of a feature within a solution. When the webpart is added to the gallery, the webparts Description field is being overwritten by an empty string. I have added a description to everywhere I can think of, including: The webpart itself. myWebpart.webpart <property name="Description" ...

Sharepoint WebParts

Say you have several webparts, one as a controller and several which take information from the controller and act on it. This is fairly easy to model using the Consumer/Producer interface introduced in ASP 2.0. How would you be able to add interactions the other way around whilst still maintaining the above? A simple example would be...

Add ScriptManager to Page Programmatically?

I am developing a WebPart (it will be used in a SharePoint environment, although it does not use the Object Model) that I want to expose AJAX functionality in. Because of the nature of the environment, Adding the Script Manager directly to the page is not an option, and so must be added programmatically. I have attempted to add the Scr...

How to migrate a 3rd party web part from SharePoint 2 (2003) to SharePoint 3 (2007)

I am migrating a site from SharePoint 2 to 3 (in fact, from SharePoint Portal Server 2003 to Microsoft Office SharePoint Server 2007). There are a handful of 3rd party web parts and since this is a migration, not an in-place upgrade, I need to install these web parts on the new farm. How do I do this, given that I have the packaged up ...

Accessing a remote file with a SharePoint Web Part

I recently built a program that parses a remote file from \some_server\c$\directory\file.xls and it works fine on my local machine as just a normal aspx page. Then I put the program into web part form on my VM SharePoint server and I get this error: Access to the path '\some_server\c$\directory\file.xls' is denied. The fil...

How do I set full trust for a single Web Part in SharePoint?

I am looking to set full trust for a single web part, is this possible? manifest.xml maybe? ...

Error when trying to deploy web part

I just wrote a new web part and now I am getting this error when I try to deploy them on my non-dev servers: the default namespace 'http://schemas.microsoft.com/WebPart/v2' is a reserved namespace for base Web Part propertiees. Custom Web Part properties require a unique namespace (specified through an XmlElementAttribute...

Deployed Web Part not showing up in 'Web Part Gallery: New Web Parts'

I took a wsp file, and did my stsadm -o addsolution like usual. Then I went into central administration->solution management and it showed up just fine. Then I deployed the web part, no problems so far. The problem is when I go to add it to the webpart gallery (Web Part Gallery: New Web Parts) usually the web part is in the list, I ch...

connecting web parts in sharepoint

I am trying to connect to simple webparts in my sharepoint team site, i need one of the webparts to filter its information based on what it recieves from another webpart I am using the query string filter webpart and the a list view webpart but no matter how i connect them always i am getting this error "Web Part Error: This page has...

Good articles for Sharepoint Web Part creation?

Does anyone know of any good basic articles for creating Sharepoint Web Parts. I have found a couple, but most of them jumped in a little quick. Thanks. ...

Sharepoint: Web Part vs. ASP.NET User Control

When creating web parts for Sharepoint, is it better to create an actual web part, or is using and ASP.NET User Control (.ascx) just as good? I already know how to create the user controls that I need, so it seems like the extra effort of creating a web part is just unnecessary leg work. What are the advantages of using a web part over...