ASP.NET MVC: Configuring ASP.NET MVC 4 Membership with a SQL CE Database
Recently I needed to set up an ASP.NET MVC project to work with a SQL CE database. I also needed to use SQL CE as the backing store for the ASP.NET Membership feature. This was a simple,...
View ArticleUse Cross-Platform/OSS ExcelDataReader to Read Excel Files with No...
I recently posted an article about LinqToExcel, a fantastic library I discovered while trying to solve a problem for a work-related project. The premise was that I wanted a library I could use to read...
View ArticleReverse-Engineering an Existing Database in your ASP.NET MVC Application...
Entity Framework's "Code-First" development model has become a highly popular approach to data modeling in ASP.NET MVC development in the last few years. The Code First approach saves the average...
View ArticleASP.NET MVC–Azure Websites and EF Model First Connection Strings when...
One of the coolest things about Windows Azure Websites is the integration with source control, and the automated deployment hooks Azure offers. However, there are a number of small gotcha's related to...
View ArticleCode-First Migration and Extending Identity Accounts in ASP.NET MVC 5 and...
In this post we setting up and extending the basic Identity accounts, pointing them at an external SQL Server (or whatever other database you choose) instance instead of the default (local) SQL Server...
View ArticleConfiguring Db Connection and Code-First Migration for Identity Accounts in...
The recent release of Visual Studio 2013 and ASP.NET MVC 5 brought significant changes to the Accounts management system (formerly ASP.NET Forms Membership). Also, there have been some minor changes in...
View ArticleKeep Nuget Packages Out of Source Control with Nuget Package Manager Restore
Nuget is cool. What is not cool is when you push a project to source control and include a ton of installed packages, bulking up your repo with stuff that could be easily pulled in via Nuget by anyone...
View ArticleExtending Identity Accounts and Implementing Role-Based Authentication in...
Implementing simple role-based identity management in ASP.NET MVC 5
View ArticleC# - Generate and Deliver PDF Files On-Demand from a Template Using iTextSharp
Generate Custom PDF documents populated with data on a "just-in-time" basis, and stream to the user as a download, without persisting to memory on the server.
View ArticleSplitting and Merging Pdf Files in C# Using iTextSharp
I recently posted about using PdfBox.net to manipulate Pdf documents in your C# application. This time, I take a quick look at iTextSharp, another library for working with Pdf documents from within the...
View ArticleVisual Studio–Painlessly Renaming Your Project and Solution Directories
The history of people struggling with project and solution renaming in Visual Studio is long. While experienced users generally understand how to do this (or how to figure it out), the first time you...
View ArticleASP.NET MVC: Show Busy Indicator on Form Submit using JQuery and Ajax
Use JQuery to make an Ajax call to a long-running process and throw up a "busy" indicator on your ASP.NET MVC page
View ArticleASP.NET MVC: Show Busy Indicator on Form Submit using JQuery and Ajax
As we all know, users are impatient. We also know that if we don't tell them our application is "doing something" they tend to do silly things like click the mouse repeatedly, seeking some sign that...
View ArticleIs Duck Typing a Type System, or a Way of Thinking?
Ok, so there is what might be my first-ever "link bait" title. Especially dangerous because I am about to jump into a discussion propagated by some well-known, highly-respected developers against whom...
View ArticleASP.NET MVC Display an HTML Table with Checkboxes to Select Row Items
Often we need to create a table for our ASP.NET MVC web application with a checkbox next to each row, in order to allow the user to select one or more items from our list for additional processing....
View ArticleIs Duck Typing a Type System, or a Way of Thinking?
Ok, so there is what might be my first-ever "link bait" title. Especially dangerous because I am about to jump into a discussion propagated by some well-known, highly-respected developers against whom...
View ArticleASP.NET MVC: Add a Select All Checkbox to a Checklist Table Using JQuery
Often, we find we need to present our users with a list of items in a table or list, with checkboxes such that the user can select one or more items from the list for additional processing. Most of the...
View ArticleASP.NET MVC 5 Identity: Extending and Modifying Roles
Extending the basic ASP.NET IdentityRole class, and working directly with roles from an administrative perspective, requires some careful consideration, and no small amount of work-around code-wise.
View ArticleASP.NET MVC 5 Identity: Implementing Group-Based Permissions Management
Adding Group-Based permissions management to your ASP.NET MVC application. For applications of moderate complexity, which require a little more granularity in authorization permissions, but which may...
View ArticleC#: Using Reflection and Custom Attributes to Map Object Properties
I have a general distaste for decorating my code with Attributes and Annotations. Most of the time, I can't help but feel like there must be a better way to accomplish what I am trying to do, and/or...
View Article