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

Weblog Posts in July 2009
WebResource access in ASP.NET MVC
July 30, 2009 @ 3:21 am

WebResources are useful when building more complex components. In MVC ASPX Views you can still access the ClientScript object to retrieve ResourceUrls, but outside of the ASPX view there's no easy access to the ResourceUrl. This post describes how grab resource urls in a couple of different ways.

kick it on DotNetKicks.com
Introducing CodePaste.NET
July 21, 2009 @ 3:28 am

As a learning experience for taking ASP.NET MVC for a spin I recently created a new site that has now gone live: Codepaste.NET which provides a public location to post code snippet and link them from social network sites that have limited input lengths and make code discussions otherwise difficult. The site's a work in process, but I hope it's useful to some of you for sharing and discussing small blocks of code online.

kick it on DotNetKicks.com
Url.Action() and RouteValue Encoding
July 19, 2009 @ 5:21 pm

When creating custom URLs with the UrlHelper.Action() method is a great way to create links to other URLs in the current Web application. However, you need to be careful of certain encoding issues as certain characters are not correctly encoded to work properly as parameters.

kick it on DotNetKicks.com
System.Data.Linq.Binary is not XmlSerializable
July 16, 2009 @ 11:30 pm

LINQ to SQL generates TimeStamp fields as System.Data.Linq.Binary types in the data model it creates. This type unfortunately doesn't serialize and XmlSerializer and therefore Web Services in general fail with a downright serialization failure. It's possible to work around this by using internal scope but it isn't a perfect solution.

kick it on DotNetKicks.com
LINQ to SQL and Transactions
July 14, 2009 @ 12:48 am

Using explicit Transactions with Linq to Sql is fairly rare but when you need them you'll find that it natively doesn't provide manual transaction management. Rather you have to rely on the TransactionScope class to provide transaction wrapping. Here's a contrived example, and a couple of different transaction scenarios using TransactionScope to manage multiple L2S data operation as a single transaction.

kick it on DotNetKicks.com
Rounded Corner Rendering in newer Browsers
July 08, 2009 @ 1:47 am

Rounded corners in HTML have been an elusive target. It's been done a million times over, but most of the approaches from manually creating images to using automated JavaScript to using complex CSS layouts with dependent images are a pain to work with. CSS 3.0 offers some relief by providing native support for rounded corners, but you can take advantage of this functionality today in some browsers that already support this functionality via browser specfic extensions.

kick it on DotNetKicks.com
WPF Localization Guidance Paper Posted on CodePlex
July 01, 2009 @ 2:44 pm

I’m happy to announce that my WPF Localization paper went live a couple of days ago on CodePlex. This document provides an overview of localization in .NET in general as well as specifically to WPF. It covers localization with the rigid LocBaml approach, as well as using Resx resources for binding using markup extensions and attached properties respectively.

kick it on DotNetKicks.com
Archives
Categories
ASP.NET (204) Personal (68) .NET (62) JavaScript (52) Visual Studio (50) jQuery (43) AJAX (43) LINQ (32) CSharp (29) IIS (28) Vista (28) HTML (26) WCF (24) 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) Sql Server (7) West Wind Ajax Toolkit (7) ASP.NET (6) C++ (6) Hardware (5) Security (5) MVC (5) ISV (4) Office (4) Software Development (4) Html Help Builder (4) Bugs (4) DataBinding (3) HTTP (3) Help Builder (3) Live Writer (3) Source Control (3) WebLog (3) Windsurfing (3) WinForms (2) Web Design (2) Speaking (2) Tools (2) RegEx (2) RSS (2) Maui (2) Installation (2) Help (2) Conferences (2) Visual Studio (2) ADO.NET (1) IIS7 (1) Addins (1) Control Development (1) Graphics (1) Html Help (1) iPhone (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