Tim Murphy's .NET Software Architecture Blog

ASP.NET

Enhancing Your Model In MVC 5

Simple views in ASP.NET MVC 5 are simple, but once you start getting a lot of conditional content formatting in the view things can get very messy. Once you get to the point where your Razor code has way to many if/else blocks and they start repeating you have to come up with a way to abstract and simplify your code. I looked at functions and partial views as possible solutions. Both of these have their place but an alternative that you may want to entertain is implementing your model as more than ......

Choosing A Windows Based Web Hosting Service

Recently I have gone through the process of selecting a web hosting company for one of my clients. There are a lot of options out there and a number things you need to be cautious about. I will go over some of the decision points and questions you will want to ask a company before signing a contract. The first thing you need to do is define the features that make up you site. Is it made up purely of static content or does not use a database? If that is the case then you can choose just about any ......

Review: Beginning Ajax with ASP.NET

First let me say thanks to Craig Shoemaker for sending me a copy of this book. Yes, I know it has been a while since it came out, but I just finally got around to going through it. In that time Craig has been working on another book and Microsoft has renamed Atlas to ASP.NET Ajax. Craig, Wally, Paul and Scott packed this text with gems, not only on Ajax, but also the technologies that it grew up from. The book covers how we got to this point. They start all the way back with JavaScript and the DOM ......

ASP.NET Web Application Project Released

For those who are missing the ability to treat your ASP.NET applications in VS2005 as projects rather than individual files this release from Microsoft is for you.  If you want all the details and then some check out Scott Guthrie's post.

Why Performance and Scalable is Required Reading

We are in the middle of addressing some production issues at my current client. One of them involves an ASP.NET application which is slow to respond at times and other times does not seem to respond at all. The fun part is that there is nothing from the application side which is giving us a clue as to what is going on. This has been going on for a while and people are starting to get frustrated, so it was decided to call the experts from Microsoft. So we start having conference calls and the MS representatives ......

To Transfer Or Not To Transfer, That Is The Questions

This is one that bit me the other day and re-enforces the need to think about why you use a certain method. I was doing some testing at the client I am working at and a page suddenly started rendering twice in the same browser window. So what I ended up with was: My Page My Page Now how the heck can that happen? I was a victum of my own code. The application's detail page was catching a custom exception type and then using Server.Transfer to go to an overview page. No problem, right? The problem ......