TroyMG

Stories submitted by TroyMG

ASP.NET MVC 2 Preview 2 Released(haacked.com)

submitted by TroyMGTroyMG(2670) 2 years, 4 months ago

Today we just released ASP.NET MVC 2 Preview 2 for Visual Studio 2008 SP1 (and ASP.NET 3.5 SP1), which builds on top of the work we did in Preview 1 released two months ago. Some of the cool new features we’ve added to Preview 2 include... read more...

add a comment |category: |Views: 438

tags: another

Spearmen, Javelin Throwers, and the State Pattern, oh my!(squaredroot.com)

submitted by TroyMGTroyMG(2670) 2 years, 5 months ago

Jamie Farser & Ayende Rahein recently had a conversation about using the State Pattern for units in a game Jamie is building. I've been following along trying to figure my way through the state pattern as well, and decided to take a stab at my own solution to Jamie's problem. read more...

add a comment |category: |Views: 11

tags: another

Asp.Net MVC Membership Starter Kit Released(squaredroot.com)

submitted by TroyMGTroyMG(2670) 2 years, 6 months ago

Almost six months after the official release of Asp.Net MVC 1.0 and nearly a year after the last release of the starter kit, I've finally rewritten and released the Asp.Net MVC Membership Starter Kit. read more...

add a comment |category: |Views: 694

tags: another

Creating an MVC Project in Visual Studio 2010(squaredroot.com)

submitted by TroyMGTroyMG(2670) 2 years, 7 months ago

Earlier today Phil Haack announced that the Asp.Net MVC installer for Visual Studio 2010 Beta 1 is now available on CodePlex along with the bonus of some basic snippets for use with MVC projects. This is exactly what I have been waiting for before installing Visual Studio 2010, so I decided to give it a shot and report back on my experience. I’m happy to say that the basic experience went flawlessly for me, though it appears that may not hold true for everyone. read more...

add a comment |category: |Views: 15

tags: another

Return of the PagedList<T>(squaredroot.com)

submitted by TroyMGTroyMG(2670) 2 years, 7 months ago

It has been nearly a year since I posted an updated version of the PagedList<T> functionality originally created by Scott Guthrie and posted by Rob Conery. Since then I have used the class in a number of projects and find it indispensable. A few days ago, Craig Stuntz reported an interesting observation: when the first page is returned, the class performs a Skip(0). Suprisingly, this is not free. With that in mind, I set out to correct that issue as well as incorporate a few changes I’ve made over the past year. The result is nearly identical to the last posted version, just a bit more readable. read more...

add a comment |category: |Views: 192

tags: another

Building a simple multiplayer game with ASP.Net MVC and jQuery(squaredroot.com)

submitted by TroyMGTroyMG(2670) 3 years, 2 months ago

Last weekend I had presented a small multiplayer-game built in MVC and jQuery as a sample for a speaking engagement. There isn't much to the "game", as you currently can only move around, but it helps illustrate how easy it is to use jQuery and MVC together to make something interesting. Who knows, maybe the source could kick-start development on your own game? read more...

add a comment |category: |Views: 886

tags: another

ASP.Net MVC - Upgrading From Preview 5 to Beta(squaredroot.com)

submitted by TroyMGTroyMG(2670) 3 years, 3 months ago

For those who, like me, have been following along with each preview push at the CodePlex project, I found a list of changes made between Preview 5 and Beta buried at the bottom of the Release Notes document as well as Microsoft's recommended upgrade path from Preview 5 to Beta. read more...

add a comment |category: |Views: 45

tags: another

Membership Administration with MVC Preview 5(squaredroot.com)

submitted by TroyMGTroyMG(2670) 3 years, 5 months ago

Last weekend I posted a release of the MVC Membership Starter Kit that targets Preview 5 of the ASP.Net MVC framework. There was no packaged release targeting Preview 4 (though if you downloaded the latest source, it worked), so this release essentially packages the changes from both previews. read more...

1 comment |category: |Views: 279

tags: another

MVC Routing Security Hole(squaredroot.com)

submitted by TroyMGTroyMG(2670) 3 years, 7 months ago

Stephen Walther's latest MVC tip introduced me to the MVC framework's ability to pass server variables into actions as parameters. Unfortunately using this feature is a very bad idea and could jeopardize the security of your application. Take a look at a code sample you might find surprising. read more...

add a comment |category: |Views: 238

tags: another

PagedList Strikes Back(squaredroot.com)

submitted by TroyMGTroyMG(2670) 3 years, 7 months ago

A few months ago I posted about my changes to Rob Conery's PagedList class. Since writing that article many comments have been left about how to further improve the design, which have since been incorporated into a new, further improved PagedList class. read more...

add a comment |category: |Views: 271

tags: another

MVC Membership with Preview 3(squaredroot.com)

submitted by TroyMGTroyMG(2670) 3 years, 7 months ago

The MVC Membership Starter Kit has been updated to work with Preview 3 of the ASP.Net MVC framework. read more...

add a comment |category: |Views: 243

tags: another

MVC: Creating SSL Links/URLs(squaredroot.com)

submitted by TroyMGTroyMG(2670) 3 years, 8 months ago

A couple days ago a reader sent in a question regarding how to use SSL with the MVC framework. Specifically the reader wanted to know the easiest way to make an Ajax call to a HTTPS page from a non HTTPS page. The tricky part here is to do so without hard-coding any URLs, so I whipped up a few extension methods that should make this a bit easier. read more...

add a comment |category: |Views: 275

tags: another

Sandcastle Removed From CodePlex(squaredroot.com)

submitted by TroyMGTroyMG(2670) 3 years, 8 months ago

Sandcastle - the .Net community equivalent of RDoc/JavaDoc and the spiritual successor of the now defunct NDoc – has been removed from CodePlex. It’s fate is currently up in the air and Microsoft is asking you for input on what should happen next. read more...

2 comments |category: |Views: 439

tags: another

Dependency Injection, Duck Typing, & More Coming to .Net (Natively)(blogs.msdn.com)

submitted by TroyMGTroyMG(2670) 3 years, 9 months ago

Krzysztof Cwalina reveals details on .Net's upcoming Managed Extensibility Framework. "MEF is a set of features referred in the academic community and in the industry as a Naming and Activation Service (returns an object given a “name”), Dependency Injection (DI) framework, and a Structural Type System (duck typing)." read more...

add a comment |category: |Views: 70

tags: another

Massive BlogEngine.Net Security Hole - Fix Provided(dannydouglass.com)

submitted by TroyMGTroyMG(2670) 3 years, 9 months ago

A massive security hole in BlogEngine.net was just revealed that allows anyone to see your passwords... Danny Douglass explains the issue and provides a patched BlogEngine.Core assembly to resolve the issue until the next release of BlogEngine is available. read more...

4 comments |category: |Views: 62

tags: another

Syntax highlighting of string literals: A better way?(secretgeek.net)

submitted by TroyMGTroyMG(2670) 3 years, 10 months ago

Leon Bambrick shows us how string literal syntax highlighting SHOULD be done. read more...

add a comment |category: |Views: 7

tags: another