Click on this icon to open the XML page.Tom Van Gaever - Blog
Search:   

Using SharePoint PeopleEditor Control 
Friday, August 8, 2008, 15:29 - SharePoint
Posted by Administrator
When you want to use the PeopleEditor control you need the correct refence in your custom SharePoint page.

<%
@Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>



Add a user to the picker (c#):

ArrayList list = new ArrayList();
list.Add(
    new PickerEntity()
    {
        Key = @"DOMAIN\User"
    }
);
userPicker.UpdateEntities(list);


Retrieve selected user(s)(c#):

PickerEntity pe = (PickerEntity)userPicker.Entities[0];
string username = pe.Key;
//or if the entities are resolved
PickerEntity pe = (PickerEntity)userPicker.ResolvedEntities[0];
string username = pe.Key;


that's it
</tom>

add comment ( 22 views )   |  permalink   |  related link   |   ( 2.8 / 826 )
Adding Breadcrumb Navigation to SharePoint Application Pages 
Friday, August 8, 2008, 11:46 - SharePoint
Posted by Administrator
It is very easy to add a breacrumb to your custom application page.

First of all you need to create an xml file in the
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\ folder.

Rename this new xml file like this
layouts.sitemap.*.xml where you can change * to any string you want.

then change the content of the XML file like this
<?xml version="1.0" encoding="utf-8"?>
<siteMap>
<siteMapNode url="/_layouts/cutomapplicationpage.aspx"
parentUrl="/_layouts/settings.aspx" title="Custom Application Page"/>
</siteMap>


finally use
STSADM -o copyappbincontent

</tom>
1 comment ( 15 views )   |  permalink   |  related link   |   ( 2.9 / 565 )
Creating a site administration page that looks like a real SharePoint administration page 
Thursday, August 7, 2008, 18:37 - SharePoint
Posted by Administrator
Ton Stegeman [MVP] wrote a wonderful article about how to create a custom sharepoint page.

Article

However, when you are searching for the hidden

Microsoft.SharePoint.ApplicationPages.WebAdminPageBase assemby

stop searching!

It is NOT in the sharepoint.dll. You must add a new reference to the Microsoft.SharePoint.ApplicationPages.dll. You can find this dll here:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\CONFIG\BIN\Microsoft.SharePoint.ApplicationPages.dll

nice to know not?
2 comments ( 24 views )   |  permalink   |  related link   |   ( 2.9 / 403 )
now I'm 100% MCTS 
Thursday, July 31, 2008, 09:44
Posted by Administrator



Yesterday i received my MCTS packet with my personal card
thanks!


add comment ( 12 views )   |  permalink   |   ( 3 / 647 )
Site Usage Report MOSS2007 
Thursday, July 31, 2008, 08:28 - SharePoint
Posted by Administrator
Recently i found a new hidden gem in SharePoint: Site Usage Reports

when you navigate to a site like http://moss01 this will redirect you to the page http://moss01 /Pages/Default.aspx.

Replace Pages/Default.aspx with _layouts/usageDetails.aspx and you'll receive a very clean and simple usage report page.

Discription of the page:

Use this page to view a detailed usage report for this Web site. The report does not include data for sites under this Web site. To see detailed data for these sites, see their corresponding usage reports. For usage information on all sites in this site collection see the Web site collection usage summary.
add comment ( 1 view )   |  permalink   |   ( 3 / 499 )

<<First <Back | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | Next> Last>>