- C#/.NET Fundamentals: Finding an Item’s Index in IEnumerableSorry for the long blogging hiatus. First it was, of course, the holidays hustle and bustle, then my brother and his wife gave birth to their son, so I’ve been away from my blogging for two weeks.
- Implement custom Claim based Authorization in ASP.NET MVC Web ApplicationTo download the source code please click here
- WPF RadioButtons and data bindingThere is a well-known issue with WPF RadioButton controls with data binding: when a radio button is unchecked the data binding is not undone. For example, suppose you have the following two radio b…
- Detecting Process Exit From Console Application in C#here are mainly 2 types of Win32 applications, console application and window application. They have different way in handling application exit. To force Window application to exit, you need to sen…
- MSDTC on server ‘servername’ is unavailableBy default, when a stand-alone instance of Microsoft SQL Server exists in a cluster environment, the SQL Server-based instance is set to start automatically. If the host node is rebooted, you may r…
- TextArea Cursor Position with JavaScriptI’d recently searched around for some good-quality JavaScript snippets to determine the cursor position within an HTML TextArea, but haven’t had any luck. So, like any fellow geek would do, I came …
- Beware of spacing in Windows7 hosts fileThe hosts file of Windows, by default located in %SystemRoot%\\System32\\drivers\\etc, can be a bitch to edit, so it seems.
- C#/.NET Little Wonders: Getting Caller InformationOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to write and maintain. The index of all my pa…
- ClickOnce, Mage and Visual Studio 2008 (includes fix)Technorati Tags: ClickOnce,MAGE,Microsoft,.net 3.5
- LINQ to SQL DataLoadOptionsOne of the good things about LINQ to SQL is that it gives the developer flexibility to choose the specified columns of a table from a database. Let’s say I have table Forums and Posts and I need to…
- MS Access and TFS?One of my first Windows applications was an Access 2.0 database. Man has Access changed since then! Recently one of my customers needed to be able to source control some of their Access 2003 databa…
- Windows CE: SDK Doesn’t Show up in Visual Studio 2008A customer recently contacted me because after installing an SDK it didn’t show up in Visual Studio 2008.
- C# Reflection Tips: Data transformation using Reflection.NET Reflection can be quite handy to transform one object to another, and specially when the target data structure varies a lot. Lets say, a “source party” has a stable Source data structure. But …
- Entity Framework Tips1. Error Message : Only parameterless constructors and initializers are supported in LINQ to Entities:
- Localization in ASP.NET MVC – 3 Days Investigation, 1 Day JobLocalization is a common issue when we develop a world wide web application. The key point of making your application localizable is to separate the page content from your logic implementation. Tha…
- Mocking the Unmockable: Using Microsoft Moles with GallioIn contrary to what I initially stated in this post, Moles is not only available as part of the Pex framework, but also stand-alone on Visual Studio Gallery, and this is completely free (no MSDN su…
- Oracle Update with Join\Update Oct ‘09 In response to a number of comments on this post regarding problems with this approach, I’ve added a new [blog entry with more details. Check it out.\]
- Passing Data to Master Pages with ASP.NET MVCFriday, December 14, 2007 5:25 PM
- SQL Server script commands to check if object exists and drop itOver the past couple years I’ve been keeping track of common SQL Server script commands that I use so I don’t have to constantly Google them. Most of them are how to check if a SQL object exists be…
