Recently I was tasked with investigating Controller testing within our ASP.NET MVC apps. Our applications typically use a lot of jQuery AJAX calls to controller methods. To prevent users manually typing the URLs, the first thing that is done in any controller method that is called using AJAX is a check to see if Request.IsAjaxRequest() [...]
Archive for March, 2010
Mocking Request.IsAjaxRequest()
Posted: 22nd March 2010 by thegrayzone in DevelopmentTags: ajax, ASP.NET MVC, C#, mocking, testing
Querying SQL Server XML data
Posted: 18th March 2010 by thegrayzone in DevelopmentTags: SQL, sql server 2008, t-sql, xml
Today I was working with data stored using SQL Servers XML datatype. I had to find a way of dealing with the XML data like you would standard relational table data. Here’s how to do it. Sample table and data Firstly, here is a basic table to store the data: CREATE TABLE DummyTable ( DummyTableID [...]
Dynamic jQuery UI Dialog buttons
Posted: 16th March 2010 by thegrayzone in DevelopmentTags: javascript, jQuery, jQuery UI
The project that I’m currently working on is an ASP.NET MVC app, with the majority of calls to server side methods being made via jQuery AJAX, returning PartialViews that are then shown in jQuery UI Dialogs. I’ve created a few generic methods for helping with common functionality used by many Dialogs. As part of this [...]
Finally got my blog off the ground. I’ll be posting about various technologies (jQuery, C#, Blackberry JDE, ASP.NET etc). But right now it’s a school night and time for bed!