Quantcast
Channel: Rick Strahl's Web Log
Browsing all 663 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

AngularJs 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 Article


Image may be NSFW.
Clik here to view.

A 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 Article

Image may be NSFW.
Clik here to view.

Nuget 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 Article

Image may be NSFW.
Clik here to view.

Project 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 Article


Image may be NSFW.
Clik here to view.

West 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 Article

Image may be NSFW.
Clik here to view.

Using 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 Article

Image may be NSFW.
Clik here to view.

The 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 Article


Image may be NSFW.
Clik here to view.

A .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 Article


Image may be NSFW.
Clik here to view.

Capturing 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 Article

Image may be NSFW.
Clik here to view.

Chrome 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 Article

Image may be NSFW.
Clik here to view.

A 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 Article

Image may be NSFW.
Clik here to view.

AngularJs 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 Article


Image may be NSFW.
Clik here to view.

WebClient 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 Article

Image may be NSFW.
Clik here to view.

Updating 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 Article


Image may be NSFW.
Clik here to view.

Creating 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 Article

Image may be NSFW.
Clik here to view.

Mixing $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 Article


Image may be NSFW.
Clik here to view.

Gotcha: 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 Article

Image may be NSFW.
Clik here to view.

INSTALL_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 Article

Image may be NSFW.
Clik here to view.

Using 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
Browsing all 663 articles
Browse latest View live