webparts

Create a List (url links) and deploy it as a feature

Hi All, I'm very new to SharePoint, so apologies if this sounds a little basic. I want to create a List in SharePoint that is just purely URL links, but then make it available to every site collection that we will create. Once this list is created, I need it to display in a webpart (like that standard 'links' webpart). I guess I will...

Binding a dropdownlist and then adding a new listitem

Hi, I have a DropDown list which I Initialize in "CreateChildControls" and add to the controls collections. I then override the render method and then render the drop down list. The web part inherits from System.Web.UI.WebControls.WebParts.WebPart. I bind the drop down list in my web part like this private void BindClientTypes() ...

SharePoint Custom Web Part With Active Directory

Hello all. I am currently working on a custom SharePoint web part (WSS 3.0, not MOSS) that will pull in information for all of the users in Active Directory to build an up to date employee directory. This web part shows things like phone number, address, and other similar fields. The issue that I am having is that, by default, the Sha...

Sharepoint Smartpart Issue

Hi, I am very new to Sharepoint programming, like the rest of my team is. We have decided to use smart part as our bridge between sharepoint and our development efforts. After some effort we got it up and running. However, the problem is, that when i use a simple user control for test, with sharepoint om code that gets names of files in ...

Deploy Web part as a feature

Hi all, I have a web part dashboard.cs which render some HTML according to records in a list. No I have a site definition created. I want to integrate this web part in my site defination as a feature so when I Build my project with the help of install.bat i want to install this feature which will deploy this web part on respective site....

vb.net .aspxauth

I am working with a large site trying to implement web parts for particular users in a particular subdirectory but I can't get the .ASPXAUTH cookie to be recognized. I've read dozens of tutorials and MS class library pages that tell me how it should work to no avail. I am brand new to Web parts, so I'm sorry if I'm unclear. The idea is ...

How can I customize SharePoint list column aggregation (total) calculations?

I have a SharePoint list column of type 'Single line of text'. Out of the box SharePoint only provides the ability to display a 'Count' total for this column type. I would like to be able to perform a custom aggregation on the data (specifically to sum numeric data held as text to overcome this deficiency). I have found examples for doi...

Display WebPart controls if user is logged in - ASP.NET 3.5

I know it's possible to use the LoginView code to display content when the user is logged in. But I am trying to do this with a webpart control, but when I do this with the drop down list for picking the Browse, Design and Catalog menu, the VB code is still trying to look for the dropdownlist. But because I'm not yet logged in, the dro...

SQL joins and logic

I am working with a SharePoint web part that I am designing in C#. I need to query a SQL Server 2005 database to return the names of machines that are associated with a particular customer, selected by the user. The problem is that there are different types of machines, and the names themselves are stored in several other tables. Here i...

Content Query WebPart - Grouping by custom column?

We have a LIST of web pages that we use as News items on our Sharepoint 2007 site. On our main page, we have a Content Query WebPart that queries this list, and nicely displays the name, and a few lines of the content. This is taken from our Pages Library that was created as part of our Publishing Template. We would like to "Group" item...

How to add a new WebPart in a specific Group after it is deployed

Hi, I am constantly writing custom WebParts but after I deploy them, they always get added to the "Miscellaneous" category. How do I add a WebPart to a specific category? The category that I am referring to here is the one we see in the "Add Web Parts..." pop up, which is activated when the "Add a Web Part" is clicked on a zone. Thank...

Create webpart saving its data on leaving article page

I have one custom article page layout which has a multiple lookup field called Tags refered to Tag list. In this layout, I put a webpart which do the task edit Tags for me. When I create a page from the layout and edit it, the webpart let me to add/remove tags easilly. How can I save data in the webpart when user press on link to call ou...

Sharepoint intranet portal

Migrating (rewriting) a whole portal originally made in .net to shareopoint doesn't seem like a very easy thing to do. I've been assigned such task and now i'm just learning, planning and starting to get things practical in order to accomplish it faster. It's not exactly a question, it should be a discussion about it and may help others...

Sharepoint WebPart, include additional assembly in wsp package

Hi all I created a utility library for my Sharepoint WebParts. Now when I reference this library from my WebPart project, it compiles fine, but the library is not included in the .wsp package. This means the library assembly is not deployed to the target system, causign the WebPart to fail. Is there any way to fix this? I am using Visu...

How to add a custom web part to a webpart page through code?

I wanna how to add a custom web part to a webpart page through code? The custom web part is already deployed to the SharePoint site. It's a MOSS instance. ...

SharePoint Web Part: rendering according to user selection

I am writing a SharePoint web part that interacts with a SQL database, allowing users to set a few parameters with some dropdownlists and pull the record for a given customer. I would like for one of three particular HTML tables to be displayed once the customer is selected. What I am confused about is how I can render HTML after the pa...

Using LoadControl in a SharePoint webpart

I'm building a SharePoint webpart that I'm trying to add to the DisplayForm.aspx page of a custom list in SharePoint. This webpart will be using the SharePoint object model to retrieve fields from my list items. I've accomplished the addition of the webpart by adding an <AllUsersWebPart> block in the <Form> block for the DispForm and I...

Content Query Web Part and Deleted Occurrences of Events

I have a content query web part showing 3 events for todays date on our Intranet homepage. However, when a user deletes an event from a recurring series, SP changes the title of that event to "Deleted: [original title]". My content query web part still shows these and I don't see a way to filter them out. For my list views I get aro...

Sharepoint 2007 weather web part

Hi, What is the best way to implement a weather web part for 2007 sharepoint. I want the web part to automatically select the correct location based on the users profile settings or maybe IP range. Or should I make the webparts connectable to another webpart where the user enters the location? I would appreciate guidance on how to do ...

SharePoint AJAX C# web part - visual layout of UpdatePanel controls

I'm creating a SharePoint web part in C# that is using an UpdatePanel for some AJAX magic. Everything is working fine, but I'd like to know how to lay out my controls visually (without using SharePoint Designer). I just have two dropdownlists, some labels, a button, and a textbox. I am creating them within the overridden CreateChildContr...