Sunshine Design - Latest Articles

Removing the XML Declaration when using XSLT

JUN

10

There was an XML declaration halfway through the body tag. I realised it was above some content that had been displayed using XSLT. The XML declaration at the top of the XSLT had been rendered in the HTML.

Embedding XSLT inside a DLL

MAY

23

It's useful having XSLT embedded inside a DLL. If you're building custom controls that rely on XML and XSLT for their output you might need to specify a default stylesheet. Having this embedded inside your DLL means that you don't need to copy stylesheets among your solutions and you can send your DLL to a friend or colleague without having to include any ancillary files. Nifty eh?

Setting up JQuery AJAX in .NET

MAY

21

In this article I'm going to outline how you can use JQuery to provide a lightweight AJAX solution for .NET. JQuery's AJAX has several advantages over .NET's AJAX.

If you were including JQuery on your site anyway then the only overhead is from the AJAX .NET plugin and the required JSON file. This totals roughly 6kb so it is a lightweight solution - far smaller than .NET's AJAX. We can write using JQuery's fantastically easy to use syntax so that we can write slicker behaviours far easier that we ever could before. This ease of use is great news for usability.

The code in this article is very similar to the example code that comes with the AJAX .NET plugin, however, I found that code did not work when I tried to replicate it in my own solution. This provided the motivation for a simple step-by-step tutorial.

Welcome to Sunshine Design

MAY

09

Welcome to Sunshine Design

Sunshine Design is a new blog founded by me, Jon Howson. I've been working in web development for eighteen months and consider myself lucky to have found a job that I love so much. This blog is intended as a place that I can post my ideas, tutorials and interesting tips and tricks. The focus will predominantly be on backend coding but I think it is important for any web developer to keep many other areas in mind - managing this challenge is what makes web development so interesting.

Read more on what this blog will cover