(Ron Cain) This post describes how we can use Dependency Injection (DI) in ASP.NET Web API using Autofac to accomplish a fairly common task – namely creating an ApiController with custom parameters to service an Http request.
Tag: Development
The Builder Pattern in .NET
(Eric Vogel) The Builder Pattern is a common software design pattern that’s used to encapsulate the construction logic for an object. This pattern is often used when the construction process of an object is complex. It’s also well suited for constructing multiple representations of the same class. F
Console Application Cursor Position
(Richard Carr) Many console applications are simple programs that output a series of lines of text, scrolling the console window when the available space is filled. However, by manipulating the cursor position, more complex output is made possible.
Implementing Role Based Menu in ASP.NET MVC 4
(Brij Mohan Dammani) In my previous post, I explained how to implement custom role provider, authorization and role based navigation on successful login in asp.net mvc 4. In this post, We’ll implement role based menu.
Relative File Paths Work In A ColdFusion File System
(Ben Nadel) For years, I’ve been using regular expressions as a means to traverse file paths in my ColdFusion applications. By chopping-off the last directory “pattern” in a file path, I was able to move up into the parent directory:
Entity Framework Gotchas
(Jude O’Kelly) Entity Framework is fast becoming the default data access method for small to medium sized apps in .NET. Whilst it offers a lot of benefits in terms of productivity and security, working with EF is often very different from working with the standard ADO.NET data-access objects and pos
How to create a List in C#
(Mahesh Chand) A list is a collection of items that can be accessed by index and provides functionality to search, sort and manipulate list items.
Using Enum.HasFlag
(Richard Carr) Prior to version 3.5 of the .NET framework, extracting individual flags from an enumeration required the use of logical bitwise operators. In .NET 3.5, the need for logical operations is removed with the introduction of the Enum.HasFlag method.
Using ASP.NET Resources in JavaScript
(Ricardo Peres) If you use resources in your web application to localize your strings on the server side, you may have also felt the need to use the same resources in JavaScript. The thing is, there wasn’t any straightforward way to do it. Until now, that is!
Make a Single-Choice List a Multi-Choice List with JavaScript
(Peter Vogel) I don’t much care for multiple selection dropdown lists. One reason is that I suspect most users don’t know how make multiple selections. But more importantly, there’s no way to tell just by looking at a list whether the list supports multiple or single selections.
