Updated: 27/01/2006; 8:58:38.
Hannes 'Shorty' Decorte's Blog | SharePoint, .Net 2.0, ...
Bringing SharePoint, Office and .Net information

woensdag 14 december 2005


I have 5 invitations for Windows Live Messenger. So if you want one, contact me at hannes_decorte at hotmail dot com.

Be fast!!!

8:58:38 AM    comment []


9:54:32 AM    comment []

donderdag 24 november 2005

See it here http://www.regexlib.com

9:49:03 AM    comment []

There is an interesting new overloaded method in the Form class in .Net 2.0 :

ValidateChildren() and ValidateChildren(ValidationConstraints validationConstraints)

From the MSDN web site:

.NET Framework Class Library  

ContainerControl.ValidateChildren Method ()  

Note: This method is new in the .NET Framework version 2.0.

Causes all of the child controls within a control that support validation to validate their data.

Return Value

true if all of the children validated successfully; otherwise, false.


ValidateChildren will descend a control's hierarchy and examine each control to see if it supports validation. If the control can be selected by the user and its CausesValidation property is true, ValidateChildren will cause the Validating event to occur. If any of the controls cancel the Validating event, this method will return false; otherwise, it will return true.

If a control is bound to a data source, and the Validating event occurs, it will cause the control to push its current data back to the data source.

Calling ValidateChildren is equivalent to calling ValidateChildren with a ValidationConstraints of None.

ValidationConstraints Members

  Member name Description
  Enabled Validates child controls whose Enabled property is set to true
  ImmediateChildren Validates child controls that are directly hosted within the container. Does not validate any of the children of these children. For example, if you have a Form that contains a custom UserControl, and the UserControl contains a Button, using ImmediateChildren will cause the Validating event of the UserControl to occur, but not the Validating event of the Button.  
  None Validates all child controls, and all children of these child controls, regardless of their property settings.  
  Selectable Validates child controls that can be selected. 
  TabStop Validates child controls that have a TabStop value set, which means that the user can navigate to the control using the TAB key.  
  Visible Validates child controls whose Visible property is set to true


9:03:20 AM    comment []

To enumerate all the methods available in a designtime component(e.g. UITypeEditor), start from the IServiceProvider passed to the component.

Get the available types.

service = (ITypeDiscoveryService)ServiceProvider.GetService(typeof(ITypeDiscoveryService));
ICollection icolletion = service.GetTypes(typeof(object), true);

For each type in the collection get the public methods

type.GetMethods(BindingFlags.FlattenHierarchy | (BindingFlags.Public | (BindingFlags.Static | BindingFlags.Instance))

If you want to eliminate abstract methods, methods with void as return type, and property get and setters, apply the following check.

!methodInfo.ReturnType.Equals(typeof(void)) && (((methodInfo.GetBaseDefinition().DeclaringType != typeof(object)) & !methodInfo.IsSpecialName) && !methodInfo.IsAbstract)

Based on .Net 2.0


7:54:20 AM    comment []

woensdag 16 november 2005


Version: ASP.net 2.0 RTM

I wasted a few minutes figuring out this one.

You have a BoundField object bound to a field of type DateTime with a DataFormatString attribute but the format string is not being applied.

<asp:BoundField DataField="DateOfBirth" DataFormatString="{0:MM/dd/yyyy}" />

Instead, the field appears to be formatted using its ToString()method like so:

Output: 10/31/2005 7:00:54 PM


To prevent cross site scripting attacks, the field value is HtmlEncoded. The HtmlEncoding occurs before applying the DataFormatString making the format string have no effect.



In this case (ie. when using a field of type DateTime), set HtmlEncode to false.

<asp:BoundField DataField="DateOfBirth" DataFormatString="{0:MM/dd/yyyy}" HtmlEncode="false"/>


Output: 10/31/2005

I am not sure why the ASP.net team decided against HtmlEncoding the string after applying the DataFormatString.

3:26:35 PM    comment []

dinsdag 8 november 2005

To change select settings
  1. On the Tools menu, choose Import and Export Settings.

  2. On Welcome to the Import and Export Settings Wizard page, click Import selected environment settings and then click Next.

  3. On the Save Current Settings page, select Yes, save my current settings, and then click Next.

  4. In Which collection of settings do you want to import, select a settings collection from the list and then click Next.

  5. In Which settings do you want to import, expand the list and select only the categories or category items you want to apply to your current settings.

  6. Click Finish.

    The Reset Complete page lists any errors associated with resetting your settings under Details.

4:56:07 PM    comment []

maandag 7 november 2005

USB Disks don't seem to automaticly get a drive letter in Windows 2003. Also when checking the Disk Manager it states that the disk format is RAW instead of NTFS. The solution is to active automatic disk mounting by:

From a command prompt run:   diskpart

Once at the DISKPART> prompt type: automount enable

Then type:    exit

That enables automounting of disk drives, including USB drives.

11:10:42 AM    comment []

woensdag 28 september 2005

A problem I recently encountered was that I couldn't adjust the virtual server settings via SharePoint Central Admin of a virtual server using SSL (https). After some googling it turned out t o be a bug (which apperantly isn't fixed in SP 2 of WSS). So I'll always got  the same error:

The server instance specified was not found. Please specify the server's address and port.

The solution/workaround is pretty simple.
Lets say the url looks like this: http://mycentraladminurl:007/SPSecuritySettings.aspx?VirtualServer=https%3a%2f%2fmyvirtualserver.

Notice the https in the VirtualServer parameter. Just change this  to http (drop the s) and everything will work.

And by the way here is the link to WSS SP2

2:23:50 PM    comment []

Download Office 2003 Service Pack 2 (SP2) here
9:27:21 AM    comment []

donderdag 15 september 2005

Want more info on PDC:

U2U Bloggers:

Jelle Druyts

Office 12 (via Patrick)

9:53:07 AM    comment []

© Copyright 2006 Hannes 'Shorty' Decorte.
January 2006
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Dec   Feb


RSS Feed

Other .Net Bloggers

Bart De Smet
Jan Tielens
Patrick Verbruggen
Patrick Tisseghem
Tom van de Kerkhof's Bloggings
Tom's Corner
Yves Hanoulle

Aggregated Feeds

Belgian .NET Bloggers