-
***** If there is any type of built in MVC support for helping find these issues please let me know ***** Ok, this may be common sense to everyone else on the net and if so… Oh Well. Tonight I was working on the MVC3 rewrite of the Dimecasts.net website and after a bit of refactoring my search feature...
-
As I keep doing this on MVC projects, thought I may as well blog it, so the next time I need it I can find it myself :) To keep ASP.NET MVC controllers clean and organised, I find it much easier to split them so they handle only a single action each. This helps significantly with maintaining some semblance...
-
I needed to include a url in a confirmation email from my asp.net app. I am not sure whether it will be deployed to a virtual directory or its own site. Just getting the Authority from the Request will yield no virtual directory, so here’s what i came up with: const string action = " Login/Confirm...
-
This is a really quick post, mostly for myself so the next time I have this issue I can find the answer (yes, I often search my blog before google). The error “Cannot use a leading .. to exit above the top directory” can be thrown by ASP.NET when you use relative paths incorrectly. If you generate...
-
Although I mentioned briefly in the past some of the new features ASP.NET MVC features ReSharper 5 supports, I thought it would be a good idea to sum up the main ones in a single post and go into a little bit more detail on them. ASP.NET ReSharper ‘s support for ASP.NET is not restricted only to...
-
I love ASP.NET User Controls , aka “ascx” files. These little guys are great for reusable content and dividing up the components of a website. The little brother of the more powerful Custom Server Control , they have some limitations, but I’ve found they are often sold short. Once falsehood...
-
After running into a lot of testing problems with my current architecture in ASP.NET, I decided that it was time to look into an IoC Framework. I have heard the marvels of how it makes code so much more isolated and clean (SOLID), but I couldn’t see my code ever getting to this point. Because...
-
I’ve been playing around with the view engine nhaml and asp.net mvc. At the same time, I’m playing around with some architectural ideas in hope to benefit future projects. I’m not doing any fancy yet, but I thought that it might be interesting to show you a couple of things to see what you think. Bear...
-
I’ve just came across a question what to do if the url I wants to redirect to is invalid (server is down etc.). Obviously the redirect will fail but that is exactly what I would like to avoid. The solution is dead simple and can look like that: 1: protected void Page_Load( object sender, EventArgs e...
-
Codai's IT Samurai School is open for enrollment. It's Flash, so it'll take a few moments to download...but I hope you'll agree it's worth the wait... http://www.itsamuraischool.com A few fun facts about the website and the school itself: Born our of a short conversation at a BBQ...
Posted to
Billy McCafferty
by
Billy McCafferty
on
05-18-2009
Filed under:
Filed under: Architecture, .NET, Software Development, Quality Assurance, ASP.NET, SQL Server, Project Management, Patterns, Test-Driven Development, Agile Development, MVC.NET, S#arp Architecture, Tips & Tricks, DDD
-
Have you ever created a new email message with the main objective being to send someone an attachment and then forget to attach said attachment? Apparently I did something similar to that in my last post. At the time of the post, I couldn't get the attach file method to work so I intended to add...
-
For all the debate regarding if Captcha's are a good thing or a bad thing one thing is certain (in my book). If you do not have some way to stop spam-bots your site will become overridden with junk in a hurry. In an effort to reduce the amount of spam comments I am getting over at Dimecasts.net I...
-
If you have been using the MVC framework I am sure you are aware that in many cases there are multiple ways to accomplish the same task. One such case in point is how to render content for a View. Now I am not talking about how to render an entire View, but rather how do I render partial Views (aka user...
-
Today I was browsing my list of RSS feeds and I stumbled upon a posting that showed some Asp.Net code. This code was nothing out of the ordinary, it was simply someone building a table with a repeater. The first thing that came to mind when I saw the markup for the repeater was 'WOW, that looks like...
-
Craig Shoemaker just posted the latest episode of the Polymorphic Podcast: ASP.NET SEO - Interview with Michael Neel . Yes, I've now appeared in a podcast that I didn't have a hand in recording! Even if you don't listen to the show (and you should, Craig does an awesome job) check out...