September 2008 Entries
I few posts ago I mentioned a colleague Bob Thomson, and how he needed to get a blog started. Well... he's actually listened to me! He's created a blog under Storm ID's (the company we both work for.) little sister. Introducing: Bob's blog is located at http://blog.stormideas.com/ Check it out; it will have loads of cool ideas for applications as well as cutting edge information on Silverlight. Nice one Bob...look forward to reading your blog! :) Technorati Tags: Silverlight,Storm Ideas
In the "olden days" of Web Forms, to render an image from the database you would have to create a HttpHandler. <httpHandlers>
<add verb="GET" path="image.ashx" type="MyApp.Web.ImageHandler, MyApp.Web" validate="false"/>
</httpHandlers>
In ASP.NET MVC you can now use a Controller Action and View to handle an image. One of the benefits is that it can harness the power of System.Web.Routing and there are no web.config sections to maintain.
Step 1 - add a route
routes.MapRoute(
"MyImageHandler",
"image/{id}/{type}.png",
new {controller = "ImageHandler", action = "Image"}
);
Step 2 - create image handling controller
public class FeaturedBusinessesController : Controller
{
public ActionResult Image(string type, Guid id) ...
My current development machine is Windows Server 2003. Because I'm doing a lot of ASP.NET MVC work, I want to be able to test my applications on IIS7. I've been testing on Virtual Machines and production servers that are running Windows Server 2008, however this is just a bit of a pain while in development. The only way is to upgrade my OS. The easiest way to upgrade would be to Server 2008, however there is licensing issues with using Server 2008 as a development machine. So my only option is Windows Vista. One slight problem is that there is...
I work for a web development company in Edinburgh called Storm ID (http://www.stormid.com). We love staying at the forefront of web technology; ASP.NET MVC, WCF, Silverlight.... Our company's Silverlight guru is Bob Thomson. "The Drum" (http://www.thedrum.co.uk) has published an article on Bob's thought's on Silverlight 2.0: "Hi Ho Silver! Has Flash Had Its Day?" http://www.thedrum.co.uk/indepth/1650-hi-ho-silver-has-flash-had-its-day- Love the title Bob! Bob discuses all the current Web technologies from Flex/Flash, HTML/JavaScript/AJAX, to Silverlight and Microsoft Mesh. Really interesting article. All we need now is a Bob to set up his own blog so the rest of us can...
The likelihood of you not knowing what Google Chrome is very very slim.... but just in case here is the link: http://www.google.com/chrome/ Must Have's As a web developer my default browser must be able to handle certain developer needs (other than rendering the website/application correctly). The most useful web developer tool is a very well known guru of an add-on for Firefox: You guessed it Firebug! So my first question is "What does Chrome offer?" Goggle Chrome has it's very own "Inspector": This is nice Google! Clearly based of Firebug, Chromes version has...
After a long battle I managed to update my 1.9.5 installation to SubText 2.0 on my shared hosting environment. I had to install all the SQL scripts manually, and I also had to build the trunk version of SubText to get round the problem of Medium Trust on shared hosting servers. While I was at it I decided that it was time to change the theme...with a few tweaks that should be it sorted. Also while I was at it I thought I'd try out using Windows Live Writer to publish my posts, since SubText now supports it. ...
As I'm sure you are all aware that the guys have released Preview 5 of ASP.NET MVC Framework.
This preview has had a lot of changes since preview 4 and this means a lot of changes to get a preview 4 application building (and running correctly) against preview 5.
I have managed to get my application running (eventually!). Here are the main areas that I had to change to get it working:
New dlls
Almost goes with out saying but you need to reference the new set of dlls
System.Web.Mvc
System.Web.Abstractions
System.Web.Routing
...