Archives

Archives / 2003
  • Conspiracy Theory...

    Is it just me or does the resemblence scare anyone else??? Dr Phil is really Steve Ballmer and the
    whole Dr. Phil phenomenon is some kind psycho-subversive ploy from Microsoft take over the world!

  • Giving the user what they want!

    [UPDATE]
    Scott pointed out the the fact that you can force file names in a download using content-disposition. This is probably the easiest way but the solution listed below will allow you to call to files that do not exists; ie KentuckyThirdDistrict.xls?querystringcrap and the file will download as KentuckyThirdDistrict. Oh well, I did it the hard way :)

  • ASP.NET Scale

    Usually I dont care about traffic stats and such but I was reading some of the news generated by my latest project and noticed that for a time we were one of the 300 busiest sites on the net! Since May we have seen over 120 million hits and Win2K3 is loving it!

  • Yukon Feature Wish...

    In SQL2K, the system stores a revision history for DTS packages. Every change you make is stored and versioned using a date/time stamp. Please do this same thing for other objects as well. Stored procedures would be best but if a change history was available for any table, view, proc, function yada yada yada, that would be superb!

  • Wouldn’t It be great…

    The majority of the validation controls target a specific web control via the ControlToValidate attribute, in the case that I have a text box to that collects required date info I will need two controls, a CompareValidator and a RequiredFieldValidator. Each are dropped separately on the web form and must have independent messages and style (yada yada)

  • PDC and Arranged Marriages

    All this hype in the run up to PDC really confounds me. Do people really have the right expectations about this – it is a big teaser!

  • ASP.NET: Windows Authentication on SQL Server

    Many of you know that Microsoft suggests using the security provided by inherent windows auth when logging into SQL Server from an ASP.NET application. With Windows 2000 this usually means adding the ASPNET user to SQL Server or the NETWORK SERVICE user for Windows 2003. This is all fine except when you are faced with authenticating against a SQL instance that is not local. It is at this point that most developers usually give up and use SQL authentication. Those who Google the problem however will be presented with a solution that advises a change to the machine.config processModel element. Here you will specify a username and password other than the default MACHINE/AutoGenerate pair.

  • Longhorn UI Screenshots

    WinSupersite has a article with some fascinating screen shots of Longhorn UI. Paul Thurott claims to have independent comfirmation of the authenticity of these images and considering his track record on such matters, you can pretty much bank on this being the real enchilada. No one outside Redmond has the kind of sources that he does.

  • An argument for breaking the law (I think)

    OK, first of all I have no sympathy for people who are “suffering” from outages due to the LoveSan virus. A patch was released weeks ago and Microsoft did everything save running commercials to warn people that there was a flaw and the patch was available. But of course, few listened.

  • C# - using keyword

    Most devs I work with are shocked to learn that the using keyword in the C# language is diatic. The obvious is for namespace inclusion but the less often seen use is for aliasing. For example, I hate having to reference the static members of ConfigurationSettings via the fully qualified name of System.Configuration.ConfigurationSettings. This is where aliasing can be cool; just give the class an alias with the using keyword like this:

      using cfg = System.Configuration.ConfigurationSettings;

  • Documentation: One difference between us and them

    Lately I have been working on a project with a number of consultants from a local linux/java company. While we go tit for tat on the arguments of Microsoft vs. Linux, they tend to be pretty honest about the fact that their opinions of Redmond are rooted in NT4 experiences. Furthermore any subsequent understandings they have of the monopolistic big brother beast who seeks to squash all other companies comes from the tainted threads of Slashdot.

  • Using inheritance to limit GetCustomAttributes array size

    OK, here is the deal – I want to get back an array of all the custom attributes assigned to my class. In my instance I have three custom attributes I have applied to the class. When I call GetCustomAttributes against the type I only want to see the custom attributes that I have added, not all the ones the ASP.NET runtime adds. When I ran my test I was getting an array of 13 attributes which included System.ComponentModel attributes that I don’t care about. How do you get rid of them? Create a BaseAttribute class derived from System.Attribute and then derive your attribute classes from this BaseAttribute class. Then use the GetCustomAttributes(System.Type, bool inherited) overload and pass in a reference to your BaseAttribute class as the type. This will cause your array to be limited to only attributes that derive from your base class; in my instance limiting to only the 3 custom attributes that I added!

  • VS2K3 Upgrade Shipments

    WOOOHOOO

    Looks like those of us who scraped our pennies and paid the whopping $29 to upgrade to Visual Studio.NET 2003 will finally get our new toy. Got an email today saying it had shipped.

  • Matrix.Reloaded.InCaseYouCare

    It is always fun to watch 127 million dollars worth of synapse stimulation, but when it involves computers and wicked special effects...well, it is that much better.

  • Good Recreational Reading

    I am sure that since most of you are like me and want to drink as much Kool-Aid as possible; I am sure you prolly read Paul Thurott's great stuff on The SuperSite and WinInfo. If you don't, give him a look some time; he is about as connected in MSFT as any person I know of...Today there is a new interview with the executive godfather himself!

    NOTE TO PAUL: Can you join the gave and give us an RSS feed!?

  • C# vs. VB - Give us EnC

    I Was having a talk with a few of my cronies this morning and was telling them about the C# vs. VB.NET moaning going on here and one of them brought up what I thought was an interesting point; whichever language gets VB6 style enc (edit and continue) first will be their choice.

  • Dummy Data Creation Utility

    OK, been working on a line of business app for one of my clients and I have gotten to the point where I need to do some real world testing. The app is pretty small; something like 40 tables in the db but it will expand pretty rapidly. How can I test this thing with a bunch of data in it? So I threw together a lil utility that will call the stored procedures and pass in dummy data; worked great, in a few minutes I was testing with 500K+ rows in some of the tables; an important thing to do, something often overlooked.