Creating ASP.NET MVC Negotiated Content Results
In a recent ASP.NET MVC application I’m involved with, we had a late in the process request to handle Content Negotiation: Returning output based on the HTTP Accept header of the incoming HTTP request....
View ArticleAngularJs ng-cloak Problems on large Pages
I’ve been working on a rather complex and large Angular page. Unlike a typical AngularJs SPA style ‘application’ this particular page is just that: a single page with a large amount of data on it that...
View ArticleA dynamic RequireSsl Attribute for ASP.NET MVC
In most of my Web applications I’m finding that I need to handle SSL activation dynamically rather than statically. IOW, depending on the environment that I’m running in I need to specify whether I...
View ArticleNuget Dependencies and latest Versions
NuGet is one of the best things that happened to .NET, to make it easier to share and distributed shared components. NuGet has become Microsoft’s main inclusion mechanism (and it looks to be come even...
View ArticleProject Navigation and File Nesting in ASP.NET MVC Projects
More and more I’m finding myself getting lost in the files in some of my larger Web projects. There’s so much freaking content to deal with – HTML Views, several derived CSS pages, page level CSS,...
View ArticleWest Wind WebSurge - an easy way to Load Test Web Applications
A few months ago on a project the subject of load testing came up. We were having some serious issues with a Web application that would start spewing SQL lock errors under somewhat heavy load. These...
View ArticleUsing FiddlerCore to capture HTTP Requests with .NET
Over the last few weeks I’ve been working on my Web load testing utility West Wind WebSurge. One of the key components of a load testing tool is the ability to capture URLs effectively so that you can...
View ArticleThe broken Promise of the Mobile Web
High end mobile devices have been with us now for almost 7 years and they have utterly transformed the way we access information. Mobile phones and smartphones that have access to the Internet and host...
View ArticleA .NET QueryString and Form Data Parser
Querystring and form data parsing and editing is something that I seem to run into from time to time in non-Web applications. Actually, it’s easy enough to do simple parsing in Web applications that...
View ArticleCapturing Performance Counter Data for a Process by Process Id
The .NET PerformanceCounter class generally is pretty easy to use in order to retrieve performance information. You create a perf counter, initialize the first value to read, let some time pass and...
View ArticleChrome DevTools Debugging Issues
Since the last few Chrome releases have come out (v38 as of this writing), I’ve had some major issues with debugging not working properly. The behavior I see is pretty strange but it’s repeatable...
View ArticleA jquery-watch Plug-in for watching CSS styles and Attributes
A few years back I wrote a small jQuery plug-in used for monitoring changes to CSS styles of a DOM element. The plug-in allows for monitoring CSS styles and Attributes on an element and then getting...
View ArticleAngularJs and Promises with the $http Service
When using the $http service with Angular I’ve often wondered why the $http service opts to use a custom Promise instance that has extension methods for .success() and .error(). rather than relying on...
View ArticleWebClient and GetWebResponse not firing on Async Requests
Here’s a little oddity I ran into today: When you’re using the good old simple WebClient class you can subclass WebClient and capture the HttpWebResponse object. This is useful because WebClient...
View ArticleUpdating Assembly Redirects with NuGet
Here’s a little NuGet gem that I didn’t know and just found out about today: You can get NuGet to explicitly re-write your reassembly redirects in your .config files based on the installed NuGet...
View ArticleCreating multi-target NuGet Packages with vNext
One feature that is going to make it much easier to create multi-targeted NuGet packages is the ability of the vNext platform to package compiled code directly into NuGet packages. By default vNext...
View ArticleMixing $http Promises and $q Promises for cached Data
If you use $http Promises in your Angular services you may find that from time to time you need to return some data conditionally either based on an HTTP call, or from data that is cached. In pseudo...
View ArticleGotcha: Entity Framework gets slow in long Iteration Loops
Thought I’d highlight a common problem I’ve run into a few times with a few of my customers using Entity Framework.I spent some time today with a customer debugging a very, very slowly process using...
View ArticleINSTALL_FAILED_VERSION_DOWNGRADE: Watch your Android App Version
I’ve been working on a Cordova app on a cheap Galaxy Tab for testing. After a lot of tweaking and finessing config settings and SDK pieces to install I finally managed to get my app to install, run and...
View ArticleUsing Cordova and Visual Studio to build iOS Mobile Apps
Last week I took a look at the Visual Studio Tools for Apache Cordova, which is currently available as a CTP preview. To be honest I didn’t have high hopes, given some disastrous presentations I’d...
View Article