webparts

How to add a web part page to a site definition?

I have to create a site definition for a client that must contain pre-defined web part pages. I can create the web part pages but am at a loss when it comes to attaching them to the site on creation. I know web part pages created through SharePoint are stored in a Document Library. Do I need to pre-populate a "Web Part Pages" document l...

Deploying New Web Parts

I've been trying to follow the information from: Long URL clipped to stop breaking the page and http://msdn.microsoft.com/en-us/library/ms415817.aspx Which more or less have the same instructions. I've been copying the .dll file from the build over to the BIN directory of the Sharepoint site. When I click the Web Part Gallery and h...

Hyperlinks In Sharepoint Webpart

I've been working on a SharePoint project and I have gone the route of loading User Controls through a custom web part. I have several web controls where I need to dynamically generate hyperlinks (in a loop from a database) that will call certain functions of the User Control when clicked. When I'm building my own ASP.NET sites, I just...

Is it possible to aggregate information from portal list to My Site

Hi! Is it possible to aggreagate information from a list in a sitecollection and/or a portal site to "My Site"? I would like to display all my calendar appointments made in the portal (or sub-site collection) in a webpart under "My Site" ...

Set web part personalizable property from JavaScript

I have defined a personalizable property on a web part and I would like to modify its value from JavaScript. Is it possible? ...

MOSS'07 - Page View Web Part Slows Menu Hovers

Hello everyone, In our MOSS '07 site we have a page that contains just a Page Viewer web part in it that points to a site on another server. However, I've noticed that on that page (and any others that have a Page Viewer web part on it) our drop down menus and hover effects are SUPER SLOW and completely max out the CPU on the visitor's...

Getting the Web Capture Web Part to work were the Sharepoint is 64bit

Previously our Sharepoint server was 32bit and we used the web capture web part to display a bugzilla search results page. Since we've migrated to a 64bit server the webpart no longer works. We're running the same versions of everything, the only change was moving from a Windows2003 32bit box to a Windows2003 64bit box. Oddly enough, th...

Make it impossible for users to remove web parts/zones?

In Sharepoint, is it possible to deny regular users the possibility of removing web parts and/or web part zones? If yes; how? ...

Sharepoint Custom Filter Web Part

I want to create a custom web part that has more than 1 filter web part and that can be connected to Report Viewer Web Part (Integrated Mode) at runt time/design time. I searched a lot but could not find a way to have single web part that is a provider to more than 1 filters. Say for example - 1. My Report accept 2 parameter Departme...

Sharepoint Webart ProviderConnectionPoint is null always

I want to create custom web part that adds another provider and consumer web part. But i always get ProviderConnectionPoint as null. Can anyone please tell me how to write web part that can add other web parts in the page and also connect them. System.Web.UI.WebControls.WebParts.ProviderConnectionPointCollection providerConnections = ...

Sharepoint default list item detail view

I have a webpart that renders random list items (from any list and list type) in a specified format. I want the items that are being displayed in the webpart to link to their ListItem detail views. However, I don't see a property on the list itself that would tell me what view is the default DETAIL view for the list (ie. blog list deta...

How to find which webpart has the property pane open for edit in wss 3.0?

I have multiple webparts present on a page. When the web part is modified, it opens a 'Property Pane'. How do I identify which web part open the property pane programmatically? ...

How do I display default text if a Data View Web Part in Sharepoint has no data?

I am trying to use the Data View Web Part in Sharepoint. There are many articles on the web related to populating it with data. My question is, what if the data source is empty? Is there a way to display a default message in this scenario? ...

Removing scrollbars from Content Editor/Page Viewer Webpart

I am trying to display an HTML page inside another SharePoint webpart page. I used the Out-of-the-box page viewer webpart, but the page viewer webpart displays a disabled scrollbar inside it. I also tried using a content editor webpart with an IFRAME tag in it, but still it didnt't work. This is the code i used in the content editor w...

Sharepoint Webpart Security Exception

I have a custom sharepoint web part that is throwing the following exception: System.Security.SecurityException: Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed. at Microsoft.SharePoint.SPS...

Sharepoint Web Part Management

I have a rather large project developed on Sharepoint and Project Server, designed as a multi-tier application. I programmatically manage web parts on certain web part pages. According to the choices of the user in one of the web pages, appropriate web parts are added to the web part collection of another web part page. My problem is tha...

Add web part programmatically to a Sharepoint Page and save values into the web part personalization store

In my project I programmatically create a web part page and add a web part to it using SPLimitedWebPartManager. I also want to set some properties for the web part and save it into the web part personalization scope. How can I access the personalization store for the web part. ...

Wrapping text inside a bound field in SPGridView

I am displaying some text in a column inside an SPGridView. The text happens to be more than a hunderd character long, and as a result, the webpart becomes too wide. I tried setting BoundField.ItemStyle.Wrap to true, and I also tried BoundField.ControlStyle.Width and BoundField.ItemStyle.Width values but theyy didn't work... How do i m...

Web Parts with a markup file?

I'm an ASP.NET web part novice. I've built a few simple ones using only a class that derived from WebPart and overriding the CreateChildControls method, but nothing really very substantial. My question is whether it's possible to have a web part that also takes advantage of a separate html/asp.net markup file that will help provide som...

SharePoint Web Part to display users by AD/SharePoint Group

Hi I'm trying to create a SharePoint web part that will display all the users in a certain active directory or SharePoint security group. So for example on the home page for a department called Human Resources, the web part will list all the people who belong to the AD or SharePoint group called HR. It's been suggested to me that ther...