
October 24, 2010 21:51 by
Brian Keating |
A word of warning:
Don't do it :-)
I'm v.guilty for using all the latest technologies so a few weeks back I installed IE9 Beta.
Problems encountered:
MVC2 projects getting 404 a lot, I did see this discussed in an interview with Phil Hack and there was a debate on wheather IE9 was just too fast for MVC2.... do you buy it??
Also I've been having problems with the editor I use to write my blog posts, been using raw html as it just didnt work, tonight i tried and compatibility mode and it works again :-)
What have I gained... nothing new that i'm using.... until I get some time to run through HTML5 (on a months holiday from work, wedding next week and putting final touches on the new house... time constraints ey! )
2c5a877d-7c6a-4f17-b76e-6a45d6eefc38|0|.0

October 10, 2010 20:56 by
Brian Keating |
There are a few options when restricting what properties of a type get automatically bound by the framework.
Take the Loler type seen in my other MVC2 blog posts.
[Bind(Include="ID,Name,Description")]
public class Loler
{
//entity framework generated
}
Notice only the ID Name and Description properties will be bound by MVC Framework.
Per Usage restriction
UpdateModel(loler, new[] { "ID", "Name", "Description" });
Action method restrictions
[HttpPost]
ActionResult Create([Bind(Include="ID,Name,Description")] Loler loler)
{
// implementation
}
d36efbdf-90e8-4b4c-809d-7713317a5488|0|.0

October 9, 2010 18:06 by
Brian Keating |
Below are two screenshots of two alternative mechanisms for handling a MVC2 post.
65930175-d766-4543-aaea-356ba760f705|0|.0

October 3, 2010 19:19 by
Brian Keating |
Take some time to explore the new vs2010 debugger.
Those of you to have experience with multithreading know that it can be a right old PIA (and i'm not talking Primary interop assembly here!).
Try the parallel tasks/stacks in vs2010 and see just how valuable a friend they become :-)
In recent times, CPU clock speeds have stagnated and manufacturers have shifted their focus to increasing core counts.
This is problematic for us as programmers because our standard single-threaded code will not automatically run faster as a result of those extra cores.
Spend some time investigating the new Tasks in .net 4.0

b3fc59c0-6d45-437f-bd6a-7a47c4536f85|0|.0