Life, Surf, Code and everything in between
White Papers | Free Tools | Products | Message Board | News |

Weblog Posts in December 2009
LINQ to SQL and missing Many to Many EntityRefs
December 24, 2009 @ 2:05 am

LINQ to SQL expects every table to be mapped to have primary keys which is reasonable. However, today I ran into a problem with an existing database and a many to many relationship which did not have a Pk in the link table. The model and underlying XML seemed to map this just fine, however, the actual generated code did not approve of this arrangement.

kick it on DotNetKicks.com
Making Sense of ASP.NET Paths
December 21, 2009 @ 1:20 am

ASP.NET includes a plethora of functions and utilities to retrieve information about the current requests and paths in general. So much so that it's often hard to remember exactly which path property or method you are actually looking for. This update to an old and very popular post from this blog summarizes many of the paths and path related operations that are available in ASP.NET.

kick it on DotNetKicks.com
SmtpClient and Locked File Attachments
December 18, 2009 @ 3:00 pm

Ran into an easily overlooked problem a few days ago where SmtpClient messages with attachments would keep the attached files locked on the local machine. Email would send fine with attachments but the local files remain locked after sending. It's easy to miss as the files are locked for writing only so subsequent read operations actually work, but the file is still locked. The solution is easy enough by applying a .Dispose() in the right spot, but nonetheless unexpected.

kick it on DotNetKicks.com
A free standing ASP.NET Pager Web Control
December 14, 2009 @ 12:15 am

Although there's decent Pager support in ASP.NET controls the way paging works is inconsistent and not very generic. After a recent experience of creating a small pager component for MVC I decided having a generic non-data or control dependent Pager WebControl would be useful. In this post I cover a custom Pager control implementation that addresses some of the shortcomings with the stock paging functionality for me.

kick it on DotNetKicks.com
Visual Studio 2010 Beta 2 Startup Failures
December 05, 2009 @ 6:25 pm

I’ve been working with VS 2010 for a while now and while it works Ok most of the time it seems the environment is very, very fragile when it comes to crashes and installed packages. Specifically I’ve been working just fine for days, then when VS 2010 crashes it will not start. Instead I get the good old Application cannot start dialog: Other failures I’ve seen bring forth other just as useful...

kick it on DotNetKicks.com
Archives
Categories
ASP.NET (209) Personal (68) .NET (63) JavaScript (52) Visual Studio (50) jQuery (46) AJAX (45) LINQ (32) CSharp (30) IIS (28) Vista (28) HTML (26) WCF (25) Localization (21) Web Services (15) Windows (15) FoxPro (14) Microsoft AJAX (13) WPF (12) ADO.NET (12) COM (9) XML (9) Web Connection (8) Silverlight (8) CSS (8) ASP.NET (8) Sql Server (7) West Wind Ajax Toolkit (7) C++ (6) Hardware (5) MVC (5) Security (5) Office (4) Software Development (4) Html Help Builder (4) ISV (4) Bugs (4) DataBinding (3) Help Builder (3) Live Writer (3) HTTP (3) Source Control (3) Windsurfing (3) WebLog (3) Web Design (2) WinForms (2) Speaking (2) Tools (2) RegEx (2) RSS (2) Maui (2) Help (2) Installation (2) Conferences (2) IIS7 (2) Visual Studio (2) Addins (1) ADO.NET (1) Control Development (1) Graphics (1) iPhone (1) Html Help (1) IIS7 (1) Networking (1) Travel (1) Utilities (1) Threading (1) SmartPhone (1) wwHoverPanel (1) Web Deployment Projects (1)


West Wind  © Rick Strahl, West Wind Technologies, 2005 - 2010