Categories
Software Engineering

Bug fixes, and a week today….

I had a thank you email from Pete LePage on the Web Development Tools team the other day – letting me know that I was one of the top ten valid bug finders (as in, bugs that were actually fixed) for the VS 2005 product cycle… It’s always nice to know that we can all make a difference to the … Read more “Bug fixes, and a week today….”

Categories
Developer Community

Do you run or attend a User Group?

If you’re involved in a User Group (in *any* country), I’d encourage you to submit information about your group to Developer Fusion at http://www.developerfusion.co.uk/members/submit.aspx – you will then be listed within our directory of resources; like these .NET User groups that we’re already listing. I really want to try and give everyone as much publicity as possible!

You can even … Read more “Do you run or attend a User Group?”

Categories
Developer Community Startups and Business

Developer Fusion reaches 1/2 Million Unique Users/month

Forgive me for sounding my own trumpet, so to speak… but this is a significant milestone for me! Developer Fusion has reached over 500,000 unique users* in the last 30 days, which is great news, and the first time it’s broken this (albeit artificial) barrier. Next target: 750,000! Many thanks to everyone who helps out or participates in the community.  … Read more “Developer Fusion reaches 1/2 Million Unique Users/month”

Categories
Developer Community

Developer Events in January

Just thought I’d post some information about upcoming developer events in January dotted around the UK! If you haven’t been to one before, why not give it a go?

  • Ian Griffiths on C# 3.0Thursday, 12 January 2006, 18:30 – 21:00 in London, UK (London .NET User Group)

    With the covers barely off on C# 2.0 we are planning on kicking

Read more “Developer Events in January”
Categories
ASP.NET Software Engineering

Why is the HtmlHead class sealed?

ASP.NET 2.0 gives us a Page.Title property, which we can set in code, or in the Page directive. Great! Unfortunately, I had a requirement so that whilst I’d be setting a portion of the title from the page, the rest would be pre-defined (ideally within the master page that I use). Obviously you can’t fiddle the stuff in the server-side … Read more “Why is the HtmlHead class sealed?”

Categories
Developer Community

Enhanced UK Developer Event Listings

I've now got some enhanced UK developer event listings up on Developer Fusion – check it out at UK Developer Events. Suggestions for improvements are always welcome. Made a nice use of the Google Maps API to do this… (sorry Microsoft, but the MapPoint service is way out of my price league!). Next on the cards will be setting up … Read more “Enhanced UK Developer Event Listings”

Categories
Software Engineering Web Development

Multiple CSS Classes

I’m not sure I should really admit to not knowing this… but today was the first time I’d realised that the “class” attribute for elements within a HTML document can accept more than one class name. doh.

Update: Here’s a simple example. With the following in your style sheet…

.align-c { text-align: center; }.font-b { font-weight: bold; }

You can … Read more “Multiple CSS Classes”

Categories
ASP.NET Software Engineering

Caching Method Results in ASP.NET 2.0 using Delegates

Hmm. Talk about over-engineering. I don’t think we really need generics at all, provided we’re happy with a cast outside the method instead of inside it.

public delegate object MethodExecution();public static object GetCachedMethod(string key, DateTime absoluteExpiration, MethodExecution method){    if (HttpContext.Current.Cache[key] == null)        HttpContext.Current.Cache.Insert(key,            method(),            null, absoluteExpiration, Cache.NoSlidingExpiration);

    return HttpContext.Current.Cache[key];    }...return (DataSet)GetCachedMethod(key, DateTime.Now.AddDays(1),                delegate() { return SomeMethodThatReturnsADataSet(myParam); });… Read more “Caching Method Results in ASP.NET 2.0 using Delegates”

Categories
ASP.NET Software Engineering

Caching Method Results in ASP.NET 2.0 using Generics & Delegates

Today I found myself coding a fairly familiar pattern – checking whether there was an entry in the ASP.NET cache with a particular key, if not, executing a method and adding the result to the cache, and either way, returning the result.

I wondered whether there was a “nice” way to do this using generics and anonymous delegates. This is … Read more “Caching Method Results in ASP.NET 2.0 using Generics & Delegates”

Categories
Software Engineering

Re-setting Identity Column in SQL Server

Discovered something new today – normally I’d just use the TRUNCATE TABLE command in order to reset an identity column in a table within SQL Server. However, SQL Server doesn’t let you do this if you’ve got foreign key constraints pointing at the table; so instead, I deleted all the rows using a standard DELETE statement, and then reset the … Read more “Re-setting Identity Column in SQL Server”

Categories
Developer Community

AJAX in ASP.NET

For those of you who missed my presentation on AJAX in ASP.NET at DDD II… or just want to see me mess up in my first demo again, you can now download a video of it from here. Enjoy! :-,,)

Categories
Developer Community

DeveloperDeveloperDeveloper II – Summary

Well, the second DDD day has come and gone – and I think I can safely say from everyone I’ve talked to, it was a great success. My thanks go out to all of you for making it such a great event. If you were there, and haven’t yet given feedback on the event, do it now at http://www.developerday.co.uk/ddd/feedback2.asp to … Read more “DeveloperDeveloperDeveloper II – Summary”