webparts

What are all the hidden list URL's for WSS 3.0 and MOSS?

For example, I have a MOSS publishing page where a user added a web part and I'm unable to remove that web part due to how the layout is rendered. I cant access the small drop down menu to "delete" the web part. I know there is a ton of unpublished list views that exist and was wondering if we could get a comprehensive list of them her...

Creating a custom EditorPart in SharePoint

I have used the following article as a guide to creating a custom EditorPart in SharePoint http://blah.winsmarts.com/2006/05/19/writing-custom-editors-for-sharepoint-2007-and-aspnet-20-webparts.aspx However when I implement this technique I cannot save the changes to my custom properties. Basically the CreateChildControls function is...

How do I open up and examine a Moss webpart?

I want to look into one of the out of the box MOSS 2007 webparts and examine the code. After that I want to replicate some of the functionality and add some of my own. Any techniques? ...

ResetPersonalizationBlob being called irregularly - how to solve?

I have provided a custom webpart personalization provider by extending the "PersonalizationProvider" class. I have also extended the WebPartsManager class to invoke "SetPersonalizationDirty", when webparts are added/removed dynamically. Now the problem is that method "ResetPersonalizationBlob" is being called suddenly even though: 1. P...

Have a webpart hide its self, if the user doesn't have proper permission

If the user creates a web part page in SharePoint and then adds one of my custom web parts to it, I would like to completely hide a web part depending on a particular users permissions. For example, I have a reporting web part some users have access to reports and some don't, I don't even want some users to know that reports exist. I ...

Web part dll in Gac or bin using sharepoint 2007

Hi What is best practice, in sharepoint 2007 web part deployment. Deploying the dll's to GAC or bin? ...

Custom TraceProvider implementation in webpart throws security exception

I am trying to implement some logging in my webpart. I implemented a Custom trace provider implementation which writes Log messages into the 12 hive logs as has been described here: http://msdn.microsoft.com/en-us/library/aa979522.aspx I have wrapped the above code into a dll called logging.DLL. I am referencing this DLL in my webpar...

Page viewer webpart won't take login parameters

I need to show an external site through our sharepoint portal and have added a Page viewer web part. The problem is that the address includes a login and password used to autologin to the external site but Sharepoint only shows the login page on click. If I click the "Test link" in the web part properties it opens as it should but in a ...

sharepoint: Using a Content Editor Web Part this error occurred:"Cannot retrieve properties at this time."

Hi all, I have a content editor web part. Whenever I edit the content and then click save, the following errors occurred: "Cannot retrieve properties at this time." "Cannot save your changes" How do you fix this? I tried googling it.. there are some similar cases but not exactly the same. I tried this link: www.experts-exchange.com...

Consuming WCF service from SharePoint web part

I have created a SharePoint web part and inside this web part I am trying to consume a WCF service.To do so I have added the system.serviceModel node (copied from client app.config) into the web.config of my web application. Is there any other way to do the same? Actually i am trying to avoid any modification in web.config of web applic...

Using WebParts in an MVC application

I'm looking for information on now to use a web part in ASP.NET MVC. I've done this in WebForms, but the MVC model is very different. Has anyone got any good links to good tutorials on getting it working? Are there any issues to be wary off? etc.? Thanks ...

WSS web-parts trust level error

Just created a WSS site with a some custom web-parts. But I get an error: ...dont have the trust level. I edited the safecontrols section from the web.config file of the virtual server, but to no avail. ...

How to set the .webpart file to load UserControl from physical path?

In asp.net we can generate a webpart component by using WebPartManager.importWebPart(reader,err) function. And the xml configuration file(.webpart file) likes: <webParts> <webPart xmlns="http://schemas.microsoft.com/WebPart/v3"&gt; <metaData> <type src="~/webpart/wp.ascx"/> </metaData> ... In here, does the src parameter must be v...

Compare Author to UserID in SharePoint XSLT

Hey Gang, I've got a simple DataFormWebPart where I'm using XSLT to render out the contents of list. I want to compare the @Author field each list item to the current user, however the following won't evaluate to true: in the header of the XSL: <xsl:param name="UserID" /> and within the template that evaluates the rows: <xsl:value...

Why asp.net response is slow

Hi i have deployed one of our asp.net website at windows 2003 server. When i request default page then always first responseof session takes more time. I think due to image rendring/ css and javascript . Is there any way to make response as fast as possible. Also in my default.aspx i am using 6 web parts and 6 user controls one for eac...

PageViewer WebPart won't load URL with GET parameters

Hi everyone. I need to show an external website in my SharePoint portal so I have added a PageViewerWebPart. But the URL includes login parameters like www.mywebsite.com?login=X&passwd=Y. I tried to add ASP code at the ContentLink PageViewer property like that : <WebPartPages:PageViewerWebPart runat="server" ContentLink="<% ="URL" %>"...

Error on updating SPPersistedObject from web part

Hi, I have written two features in SharePoint 2007. One is scoped at Site level and it basically adds a web part to the site collection where it is activated. This feature assembly is deployed under the 'bin' directory. Second is Farm scoped which is my custom SPPersistedObject and is deployed in Central Administration. The assembly i...

How to link different WebParts pages in SharePoint

I am using some custom WebParts in SharePoint like (http://www.codeplex.com/smartpart) with some controls. I have more than one WebPart at different pages. How is it possible to link them together? For example at the button click event handler or the hyper link target what should be URL to navigate to? ...

My existing webparts won't work in SharePoint

I have a standard ASP.NET 2.0 website. It has a webpage page. I have a webpart in my Company.Web.dll that I display on my webpart page on my website.All is good!!! I would like to use this same webpart in SharePoint 2007. I have a "site definition" project in VS2008 using Extensions for SharePoint 1.2. I have tried various ways to add...

What about task lists and other web parts in Sharepoint?

I have the Ajax working on a custom web part written in Visual Studio and it works fine. Question - I created a task list on the site and added it as a web part to the default page. I would like that web part (task list) to also refresh asynchronously. I have opened it in Sharepoint designer, but I really don't know how to apply Ajax to ...