Standing on the shoulders of giants. RSS 2.0
# Friday, August 12, 2005

System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;

Note: this will be 0.0.0.0 if you use it in the code-forward of an aspx page.

Friday, August 12, 2005 2:54:58 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] - Trackback
ASP.NET | Codesnippet
# Thursday, August 11, 2005

In Visual Studio 2005 there appears to be an allignment bug in switch/case statements as you can clearly see in this picture:

Vs_brace

[bug details in MSDN Product Feedback Center]

Thursday, August 11, 2005 7:19:06 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [1] - Trackback
Visual Studio 2005
# Wednesday, August 03, 2005

Daniel McPherson points to a number of templates for Windows Sharepoint Services, available on Micorsoft downloads, to help with common tasks in every organization.

Windows SharePoint Services Applications Template: Room And Equipment
Windows SharePoint Services Applications Template: Expense Report Portal
Windows SharePoint Services Applications Template: Event Planning
Windows SharePoint Services Applications Template: RFP Management
Windows SharePoint Services Applications Template: HR InfoPath Forms
Windows SharePoint Services Applications Template: Professional Services Contractual Setup
Windows SharePoint Services Applications Template: Loan Initiation Management
Windows SharePoint Services Applications Template: Change Management
Windows SharePoint Services Applications Template: Meeting Management
Windows SharePoint Services Applications Template: Classroom Management
Windows SharePoint Services Applications Template: Legal Document Review
Windows SharePoint Services Applications Template: Employee Scheduling
Windows SharePoint Services Applications Template: Marketing Communications Campaign Site
Windows SharePoint Services Applications Template: Employee Training
Windows SharePoint Services Applications Template: IT Developer
Windows SharePoint Services Applications Template: HelpDesk Dashboard
Windows SharePoint Services Applications Template: Board of Directors
Windows SharePoint Services Applications Template: Project Team Management
Windows SharePoint Services Applications Template: Absence Request and Vacation Schedule Management
Windows SharePoint Services Applications Template: Competitive Intelligence

Wednesday, August 03, 2005 10:05:27 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] - Trackback
Sharepoint
# Saturday, July 30, 2005

Available on SourceForge.net, haven’t found anything yet, excellent work Omar, Scott and everybody else.

[full list of new features]

Saturday, July 30, 2005 2:30:14 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] - Trackback
General
# Wednesday, July 27, 2005

public static string HashPasswordForStoringInConfigFile(
   string password,
   string passwordFormat
);

In the FormsAuthentication class in the System.Web.Security namespace.

The first parameter is the string you want hashed, the second is the hashalgorithm, “sha1” or “md5”, to use.

[more info on msdn]

Wednesday, July 27, 2005 8:22:06 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] - Trackback
Codesnippet | Development
# Wednesday, July 20, 2005

Be sure to visit all the options under "Configuration" in the Admin Menu Bar above. There are 16 themes to choose from, and you can also create your own.

Test

Wednesday, July 20, 2005 12:00:00 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] - Trackback
dasBlog
# Tuesday, July 19, 2005

For the first time ever the help system will be user customizable; users can add their own notes to the pages for future reference.

Hope they allow you to share these annotations through some kind of community, but sounds cool.

[source: ars technica]

Tuesday, July 19, 2005 12:50:51 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] - Trackback
Longhorn
# Monday, July 18, 2005

This code shows how to deserialize a string containing xml to an object using a StringReader and an XmlTextReader (remember to insert a using-statement, where appropiate). The deserialized class also shows how to handle xml-arrays using the serialization attributes.

// ===============================================================================
// Copyright (C) 2005 Paul van Brenk
// All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR
// FITNESS FOR A PARTICULAR PURPOSE.
// ==============================================================================
// Deserializing a string containing xml and an xml-array.
// ==============================================================================


using System;
using System.Collections;
using System.IO;
using System.Xml;
using System.Xml.Serialization;

public class MyClass
{
    public static void Main()
    {
    
        string xml = "<person>" +
                        "<firstname>Paul</firstname>" +
                        "<lastname>van Brenk</lastname>" +
                        "<addresses>" +
                        "    <address>" +
                        "        <street>Home Street</street>" +
                        "        <number>80</number>" +
                        "        <postalcode>1000 AA</postalcode>" +
                        "        <city>Home Town</city>" +
                        "        <country>The Netherlands</country>" +
                        "    </address>" +
                        "    <address>" +
                        "         <street>Work Street</street>" +
                        "        <number>100</number>" +
                        "        <postalcode>1000 BB</postalcode>" +
                        "        <city>Work Town</city>" +
                        "        <country>The Netherlands</country>" +
                        "    </address>" +
                        "</addresses>" +
                    "</person>";
                    
        XmlSerializer ser = new XmlSerializer( typeof(Person) );
        
        StringReader reader = new StringReader(xml);
        XmlTextReader xmlReader = new XmlTextReader(reader);
        
        Person person = (Person)ser.Deserialize(xmlReader);
    }
}

[XmlRoot("person")]
public class Person{

    public Person(){
        // required for serializer
    }
    
    [XmlElement("firstname")]
    public string FirstName;
    [XmlElement("lastname")]
    public string LastName;
    
    //defines the arraynode
    [XmlArray("addresses")]
    // defines the node in the array
    [XmlArrayItem("address")]
    public Address[] Addresses{
        get{
            if(this.addresses == null ){
                return new Address[0];
            }
            return this.addresses;
        }
        set{
            this.addresses = value;
        }
    }

    [XmlAnyElement()]
    public XmlElement[] UnknownElements;

    private Address[] addresses;
}

// this attribute has no influence on the rendering
// of the element as part of an Xml-array.
[XmlRoot("address")]
public class Address{

    public Address(){
        // required for serializer
    }
    [XmlElement("street")]
    public string Street;
    [XmlElement("number")]
    public int Number;
    [XmlElement("postalcode")]
    public string PostalCode;
    [XmlElement("city")]
    public string City;
    [XmlElement("country")]
    public string Country;
}

Monday, July 18, 2005 8:07:03 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] - Trackback
Codesnippet

SeaMen screenshot

Mart Muller: There is a lot of talk about AJAX lately. It's not new but there are a lot of cool things that you could do with it. Some guys at Tam Tam dove into it and gave a session about it last week. One of the "demo's" they've built is "Seamen - Massive Multiplayer Battleships". A cool AJAX example I do not want to keep away from you!

[note: it’s kinda slow right now, but that’s probably due to the hosting, it’s hosted from a home-adsl connection.]

Monday, July 18, 2005 1:34:34 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] - Trackback
Development | Fun
Ads
About
© Copyright 2012
Paul van Brenk
Sign In
newtelligence dasBlog 2.3.2011.0
All Content © 2012, Paul van Brenk
DasBlog theme 'Business' created by Christoph De Baene (delarou)