When is a static constructor in C# called?

A static constructor is invoked by the first of either of the following conditions: Create an instance of the class. Refer any of the static methods of the class. Confused ? Read ahead… Example class Sample {    static Sample()    {       Console.WriteLine(“static constructor called”);    }    public static void WriteTime()    {             Console.WriteLine(“Static method called”);    }    public static […]

Sql Server 2005 blocking quiz

Check out http://blogs.msdn.com/psheill/archive/2006/02/20/535614.aspx for a fantastic quiz on SQL Server 2005 blocking and verify if you have got your fundamentals right. Good job, psheill.

Office live site goes live

Office Live (still in beta) website http://officelive.microsoft.com/ went live today. So what does Office live have for me? Three categories of services: 1. Microsoft Office Live Basic: Easy to use web site design tool (ala Frontpage online), Free domain name and hosting , 5 personalized email accounts(Office live mail), good data storage and data transfer facilities, […]

Application which does not create an entry in Add/Remove Programs

Do you want your application not in appear in Add/Remove Programs list? If yes, ARPSYSTEMCOMPONENT property of the Windows Installer SDK helps. Setting this property to 1 prevents the installed application to be displayed in the Add/Remove Programs List. More information on this key is available at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/arpsystemcomponent.asp On a side note, i fyou want […]

Visual Studio Service Pack WebSite

Visual Studio.NET Service Packs are due this year, but their site is up already (The site clearly mentions it is still in process) http://msdn.microsoft.com/vstudio/support/servicing/default.aspx Visual Studio 2003 Service Pack 1 ships Q2, 2006 Visual Studio 2005 Service Pack 1 ships Q3, 2006

.NET Tip – Getting logged in user name in ASP.NET web application

Frequently we desire to autopopulate some fields on our web form with the current logged in username and domain. How to get that information? Well, User.Identity.Name comes to the rescue. Set the text property of the field to User.Identity.Name and it will show the logged-in username prefixed by the domain information

Want to work for Microsoft? Send me your resume

I contract with Microsoft through Volt (www.volt.com) and currently there are lot of contract positions available. If you are interested to work with the best brains in the world and love developing challenging products used by millions in the world, send me your resume at vipul_d_patel@hotmail.com . These are strictly contract positions. US Citizen, Green […]