Posts Currently viewing the tag: "ASP.NET"

I spoke at VSLive Anaheim 2017 this week.  As promised, here are my slides and code from the ASP.NET & ASP.NET Core Security talk. Role-Based Security Stinks: How to Implement Better Authorization in ASP.NET & WebAPI In .NET, if your user permissions are simple, you’re in luck.  Access the IPrincipal…(Read More)

When you’re working automated builds and automated releases, you frequently need to edit configuration files like app.config, web.config, and appsettings.json. Well, I wrote a command line utility to do this and I figured I’d share.  I’ve got a version that is an .exe that can be used on a…(Read More)

In my last post, I talked about how to create an ASP.NET Web Application that’s easy to deploy from your Team Foundation Server vNext Build (TFS Build vNext).  Well, part of the pain of deploying an ASP.NET Web Application (ASP.NET MVC or ASP.NET Web Forms) from a build is dealing…(Read More)

By this point, you’ve probably heard that Team Foundation Server 2015 has a completely new build system.  As part of it, it organizese and compiles the code slightly differently than the old XAML-based TFS Build system.  First off, when you run a vNext build on a build server, you got four folders: a…(Read More)

I spoke at VSLive Austin 2016 last week.  As promised, here are the slides & code samples from my ASP.NET MVC / ASP.NET Core Security Authorization Talk.   Role-Based Security Stinks: How to Implement Better Authorization in ASP.NET & WebAPI In .NET, if your user permissions are simple, you’re in luck…(Read More)

I spoke at VSLive Austin 2016 last week.  As promised, here are the slides & code samples from my DevOps / Feature Flags talk. Get Good at DevOps: Feature Flag Deployments with ASP.NET, WebAPI, & JavaScript Want to get good at DevOps but deployments are getting you down? Is the code integration process just plain…(Read More)

Quick fix to a problem that I just hit.  I’m writing an application in ASP.NET MVC with Razor and I wanted to use an editor template for a collection on my model.  In this case, I’m trying to edit a Person object that has a PersonPhones collection off of it and I…(Read More)

I was running into a problem while trying to get a Bootstrap form to lay out properly.  My problem was that the text of labels was getting rendered under textboxes.  As I was playing with various Bootstrap styles on my DIVs – for example, ‘col-md-5’, ‘col-sm-5’, ‘col-sm-offset-1…(Read More)

UPDATED (May 16, 2016) — If you’re looking for how to do this with ASP.NET Core, here’s the ASP.NET Core 1.0 version. UPDATED (June 13, 2014) — With the latest version of the ASP.NET Identity / OWIN libraries and code, the Redirect URL value that you’ll use in Step #8 should…(Read More)