Tag | MVC Posts

Scott Guthrie’s team just unveiled a beta release of several projects. In the next few days, I will be exploring each of them, but given that I am preparing for my October 28, 2010 SoFla PDC 2010 talk on MVC, I will probably experiment with the latest ASP.Net MVC 3 Beta first as it will be my main focus at the local PDC event. To get to enjoy the latest and greatest ASP.Net MVC 3, we first would need to uninstall the MVC 3 Preview if we had that already installed. This can be simply done by going ...
Sam Abraham (Me) will have the privilege of speaking with Joe Homnick at the Gold Coast .Net User Group October 2010 meeting about The Open Data Protocol (OData). For this talk, I plan to demonstrate how the Open Data Protocol can be leveraged in an ASP.Net MVC solution to consume data feeds using JQuery. Speaking at the Gold Coast .Net User Group brings back good memories. It was at the Gold Coast group that I first met Alex Funkhouser, Sherlock Technology’s President a little over a year ago. At ...
Sam Abraham (Me) had the great pleasure of attending and participating at the SW FL .Net Code Camp which took place on September 25, 2010 at Florida Gulf Coast University, Estero, FL. I spoke at two sessions: “ASP.Net MVC” and “SSIS for C# Developers”. I was pleasantly surprised with the high turnout at the MVC session despite the fact that it was scheduled early on that Saturday (8:45 AM). This highlights the growing interest in ASP.Net MVC and its related suite of tools such as Razor, Web Pages ...
I am totally in love with ASP.Net MVC 2 so I figured what better topic for my first post. When I first saw the presentations on MVC (or if you prefer MVVM), I wasn't impresesed. My first reaction is "I already do that." I looked at it as a design pattern, seperation of concerns, etc. Then I watched Scott Hanselman's video and realized two very important things: MVC is not web forms MVC 2 ships with VS 2010 (even Express) The second is possibly the most important. I had looked at other Microsoft patterns ...
Has it ever happened to you that you are sitting with your laptop and need to do something with a computer on your local network and it turns out that computer is in a sleep mode and you have to walk to it and move the mouse or press some key to wake it up and then come back to your laptop to do what you initially wanted to do with it? Indeed, if you have to walk to a computer rather than remotely access it than the benefit of having local network is already somewhat undermined. My particular situation ...
Recently I blogged about WCF REST services with no svc file and no config. In this post I also discussed the pros/cons of WCF services as compared to using MVC controller actions for web services and I made the case that, in many instances, WCF REST services is better than using the MVC infrastructure because WCF provides: a more RESTful API with less work a convenient automatic help page to assist consumers of your service automatic format selection (i.e., xml/json) depending on HTTP headers In ...
At this week's Virtual Brown Bag meeting: Claudio talked about the Pomodoro Technique JB continued his ramping up with Rails series by showing how to create a model, controller, and views This Rails thing looks pretty cool, but it I think they stole some ideas from Microsoft's invention of the MVC pattern. ;) Links and video recording: https://sites.google.com/si... ...
TOPIC: BDD and SpecFlow This is a presentation on how to use BDD and SpecFlow to build software driven by specifications. It will include a brief overview of how SpecFlow works and how to define specifications, followed by a compare and contrast with standard TDD. It will finish with real-world SpecFlow examples of successes and failures. PRESENTER: Darren Cauthon Darren Cauthon is a developer with over eight years of experience, half of which have been on the .Net platform. He currently works for ...
I’ve been making my way through a few MVC books recently and was looking forward to reading Stephens book. Stephen does a lot of videos on the Microsoft asp.net site that I like and I was not disappointed by the book. Although not really targeted at MVC2 and VS 2010 all the basics are the same. He does an excellent job of stepping through the components of MVC… controllers, views, models and routing. He also digs into HTML helpers, binding, caching, authentication, testing and jquery. All the examples ...
Sam Abraham (Me) will be speaking at The South West Florida .Net Code Camp taking place on Saturday, September 25th, 2010. I will be sharing two topics: “SSIS for C# Developers” and “Introduction to ASP.Net MVC”. With so many great speakers covering a wide variety of today’s hottest technologies, the event is bound to be a great learning experience for all. Looking forward to attending as many talks as my brain can take. :) See you all there! --Sam Abraham Here are the abstract for my scheduled talks: ...
MVC uno de los dos modelos de programación incluidos dentro del framework de ASP.NET para construir aplicaciones web. El otro modelo es el tradicional ASP.NET web forms. El modelo MVC separa la aplicación web en las siguientes tres partes: Modelo: administra y estructura de la toda aplicación. Aquí se regula aspectos como el acceso a la información, reglas de validación, entre otros. Vista: encapsula la información en una forma presentable; aquí es donde se incluye el HTML y CSS. Controlador: contiene ...

Thanks to everyone who attended my MVC 2 presentation last night at DC DNUG. I was very impressed with this new user group. We had a good turn out and got good questions from the participants. The code and PowerPoint from the presentation can be downloaded here.

It has been a while since my last blog post. I have been busy and lazy at the same time and couldn't find the time to get around posting new blog posts. I have been thinking of writing a blog post series on ASP.NET MVC for Web Forms Programmers. Especially because I am planning to give presentations at .NET User Group meetings and Code Camps starting this October-November. So, now I need to buy a 17" screen laptop with Windows 7 64-bit with 8GB RAM. I have always been a Desktop guy because I hate ...
Long time didn’t post any articals about the Windows Azure since I was fully busy with our first cloud-based platform – XLR8 (codename: Xalent). Just a week ago my chief architect Ray asked me to try to deploy our platform on Windows Azure. There should something need to be changed and one of them is, on Azure we cannot use the local file system to store anything which was uploaded by the end users. There are two reasons: All files under the web role project will be treated as one package. This means ...

Wednesday night (8/25/2010) I will be presenting Top 10 Ways MVC 2 Will Boost Your Productivity at DC DNUG. This is a brand new user group that just started a couple of months ago and it will be my first time there. I hope to see you there!

While Microsoft continues to add features to WCF with each version, they are also adding features that simplify working with WCF services as well. Historically WCF has been somewhat intimidating to the uninitiated because of the non-trivial configuration for endpoints including behaviors, bindings, and much more. For this reason, a lot of people stayed with “old school” asmx web services. With the new features of WCF 4, you can build powerful web services with *no* svc file and *no* endpoint configuration. ...
I have been meaning to write this post for quite some time now. Finally, I have a moment to spare and express my thoughts. I have been programming in .NET for several years and I have never felt the shortage of excitement until now. Unfortunately, when I think about the future of .NET I see nothing on the horizon. ASP.NET MVC has been pulling me back into the .NET community but this will end some time soon. Every time I start building the application I am faced with same stuff over and over again. ...
One of my colleagues pointed me at Howard Baines as a recent example of a web consultancy already using Visual Studio 2010 and Entity Framework 4.0 to build web applications. I managed to grab a little time with co-founder Clive Howard (on twitter) to talk through some of the decisions, especially as I was intrigued to learn that they started out on Open Source Software including Ruby on Rails before switching to the .NET Framework. We discuss: Why switch to the .NET Framework? Entity Framework 4.0 ...
I have decided to try and put together a top notch online conference delivered predominantly via UK based speakers, inspired by the very enjoyable and useful community driven MVC Conference http://mvcconf.com/ (see my write up) What I need now is top notch session proposals from folks who know what they are talking about and ideally are UK based. Which means – you! Possibly :-) The plan is: The conference will take place 10am to 5pm UK time, delivered using Live Meeting and recorded for on-demand ...
If you are following Scott Gu’s Blog or simply the ASP.NET Community, you would have definitely heard about WebMatrix and the Razor view engine. More specifically you must have heard of something known as “ASP.NET WebPages” The ASP.NET WebPages, Razor Engine as well as WebMatrix can definitely be confusing for many who have been into ASP.NET Development for sometime now. Clearly, this is not for you, if you are hard core ASP.NET Web Developer and are happy with either Webforms or MVC based development. ...
WebMatrix is back – sort of. There used to be Web Matrix in the early days of ASP.NET. Now, it’s back again, and it’s ready with some of the upcoming preview capabilities coming out – such as a view engine called Razor. ASP.NET MVC 3 Preview 1 http://www.microsoft.com/do... WebMatrix http://www.microsoft.com/we... Razor http://weblogs.asp.net/scot... ...
Last Thursday was the first ever MVCConf – a virtual conference around Microsoft MVC Framework, and it looks to have been a great success! I wasn’t able to make it to any of the sessions, and if you’re in the same boat then you and I are both in luck: the organizers recorded all the presentations and have posted them for viewing! You can access all the conference content here ...
Quick Link: download ASP.NET MVC Preview 1 It is a an exciting time to be a web developer. There are lots of new technologies from Microsoft coming out for the browser (IE9 changes everything), in the area of tooling (the brand new WebMatrix) and for the server – with ASP.NET MVC 3 Preview 1 released today (27th July 2010). Download and install side by side with MVC 2 If you have Visual Studio 2010 (The FREE Web Developer edition is fine) then you can safely download ASP.NET MVC Preview 1 (download ...
Time for me to evaluate the progress on the original goals of our project. In januari, I started on a new project and set myself/the project a few goals. These goals were explicitly written down in a previous post. We've now finished phase 1 of the project, and I took the time to see what's left of my new year's resolutions.What's the point?I believe that you can only improve and learn new things when you deliberately set yourself explicit goals. Publishing these goals for all to see has been a major ...
Yesterday (22nd July 2010) was mvcConf – “the Virtual ASP.NET MVC Conference”. This was an ambitious undertaking by the community to deliver a three track, 20+ session conference for FREE using Live Meeting. And… it worked great. A big well done to everyone involved. It was particularly interesting to me and my team as we are hoping/planning to do similar online conferences in UK time around technologies such as the Windows Azure Platform and Windows Phone 7 – and attending yesterday gave me the ...
Most simple forms we write, especially in LOB applications, are repetitive sections of inputs and/or displays. Take a look at an exmaple from the MVC Music Store sample, the album editor template, notice anything repetitive? <%@ Import Namespace="MvcMusicStore"%> <%@ Control Language="C#" Inherits="System.Web.Mvc.Vi... %> <script src="/Scripts/MicrosoftAjax... type="text/javascript">&... <script src="/Scripts/MicrosoftMvcA... ...
Back in January, Jeremy Miller posted a nice article on HtmlTags: Shrink your Views with FubuMVC Html Conventions. We were immediately in love with the idea and have spent several months adapting the conventions to work with our ASP.Net MVC applications. I was having a conversation with Ryan recently, reflecting on how far we’ve come and how we had no vision of that when we first read that article. I want to share some of that, so I will be working on a series of blog posts to show “What we are doing ...
Technorati Tags: ASP.NET MVC,mvcconf I took the day off work today to "attend" mvcConf: the Virtual ASP.NET MVC Conference, and had a great time. Thanks to all of the presenters and organizers of the conference. It was a huge success, and I'm sure that like me, most of the attendees hope there will be another soon. It was amazing how smoothly everything went. There were only one session cancellation and very few technical difficulties (I experienced none, but people in the chat rooms reported a few ...
My boss Marc posted a summary of my team – or in his words “a round up of where our crack team of highly-visible ninjas will be concentrating their efforts on your behalf”. In total we are now eight. Ok, nine if you count Marc. Although IMHO seven is a much nicer number but I digress (thankfully I finally no longer associate the number 7 with the movie Se7en – it has taken a while but the recent run of Magnificent Seven movies has helped!). I have a change of focus as we enter a new Microsoft FY. ...
Next week Thursday I will be speaking at MvcConf. This is a virtual, free conference that has attracted some very heavy hitters MVC hitters to come and chat about their voodoo. This should be interest sting. http://mvcconf.com/ Below is the abstract and TOC for my presentation. If you think I missed something or am watering down the presentation please feel free to contact me to give me your suggestions. Abstract In this session we will take a look at a handful of common ways that MVC applications ...
It was a pleasure speaking at the Miramar .Net User Group on July 13th, 2010. We discussed some of the basics of ASP.Net MVC as there were some attendees who did not have prior exposure to the Framework then moved to discuss the new features that MVC2 offers as well as the MVC dev tools available in Visual Studio 2010 (MVC Project Templates & Snippets) that make development even easier. Audience was quiet engaged and we had lots of fun discussing MVC2 and its applicability to today's development ...
This week, Scott Guthrie, Corporate Vice President at Microsoft’s Developer Division, announced, via blog post, the early Beta release of a new tool called WebMatrix. WebMatrix is a free developer tool that enables Web development geared toward what might I might call Markup-and-Script developers (more on that in a minute). And although WebMatrix draws upon technologies already, or soon to be, present in the fuller ASP.NET Web development platform and the Visual Studio integrated development environment ...
Technorati Tags: jQuery,ASP.NET,ASP.NET MVC,conferences I was excited yesterday to learn of two upcoming virtual online conferences about topics in which I'm very interested. The first one I heard about was mvcConf, the Virtual ASP.NET MVC Conference - Thursday, July 22. From the website: mvcConf is a virtual conference focused on one thing. Writing awesome applications on top of the ASP.Net MVC framework. The event will be free to attend, and your brain will explode from taking in so much hard core ...
Technorati Tags: .NET,ASP.NET,ASP.NET MVC I'm rewriting a "classic ASP" (that term always makes me laugh - Just 'cause it's old don't make it "classic") application in ASP.NET MVC 2. There's an existing user authorization table in the database, so I want to keep using that for authorization determination. I created a custom class inheriting from FilterAttribute and implementing IAuthorizationFilter: 1: public class DuffAuthorizeAttribute : FilterAttribute, IAuthorizationFilter 2: { 3: public DuffAuthorizeAttribute(params ...
Technorati Tags: Scott Hanselman,diabetes Scott Hanselman is on a mission to raise $50,000 dollars for the ADA Diabetes Walk 2010. $30,000 has been raised so far. He needs our help to raise the remaining $20,000. Are you a "Hanselfan"? If you: have been entertained and educated by the Hanselminutes podcast have a well-thumbed copy of "Professional ASP.NET" on your desk (heck, you could use the dang thing for a desk, it's so huge) ==> or have read one of Scott's other books have learned about a ...
I recently had the privilege of taking part of a conversation about available blog engines with some of our Microsoft Community Leaders. I since got interested in finding out more about available .Net-based extensible blogging engines. Two days ago, I came across a link about Oxite, a codeplex ASP.Net MVC-based mature open source blogging engine (http://oxite.codeplex.com). While the Oxite project is no longer active, its source remains available and downloadable. Additionally, the future holds great ...
When MVC 2 was released, there was a last minute change to use Model Validation instead of Input Validation. Essentially, Model validation means that your entire view model will be validated regardless of which values actually got posted to the server. On the other hand, with Input validation, only the values that get posted to the server will get validated. While this was the right decision by the MVC team for the most mainstream cases, there are still some cases where the previous behavior of Input ...
Technorati Tags: .NET,ASP.NET,ASP.NET MVC,Microsoft Unity In my current ASP.NET MVC project, I'm focused on testability and programming to interfaces rather than concrete implementations, so I have a ton of interfaces. I'm using the Microsoft Unity IOC Container, so my dependency injection initialization code looked like this: 1: using System; 2: using System.Collections.Generic; 3: using System.Reflection; 4: using Duff.Localization; 5: using Duff.Database; 6: using Microsoft.Practices.Unity; 7: ...
I read somewhere that Kent Beck likes to apply a strategy of taking a technique that works and exaggerating it, to see if the results are likewise exaggerated. He found that specifying the behaviour of components prior to implementation, and in small increments, produced good design, so he exaggerated it and now we have TDD. He found that strong engineering practices, rich communication and delayed decision making was a good way to run projects, so he exaggerated it and now we have Extreme Programming. ...
Technorati Tags: ASP.NET,ASP.NET MVC I wish I had discovered this before part 19. I've got some catching up to do… Evan Nagle's working / blogging / joking / cartooning his way through building an ASP.NET MVC 2 web site in what looks like the .NET world's answer to Why's (Poignant) Guide to Ruby: http://www.weirdlover.com/2... Looks like a bit more entertaining ride than NerdDinner or the Music Store ...
Videos of presentations from NDC 2010 are now available at: http://streaming.ndc2010.no... It looks like there are about 48 available. I'm particularly looking forward to: Mads Torgersen: "C# Quo Vadis?" (followed by a discussion on the future of C# with Mads, Eric Lippert, Gafter and Jon Skeet) Roy Osherove: "Beautiful Teams & Leaders" Greg Young: "5 reasons why projects using DDD fail" Jon Skeet: "If I Ruled the World - C# 5.0 According to Jon" Eric Evans: "What I've learned About DDD Since ...
Saw this on Twitter tonight: Rob’s blog posts always generate some colourful comments, so when I see a tweet with his name and “Bridges were burnt”, I’m thinking this is going to be quite the talk. The talk in question is titled “The Next Big Thing or Cool-Kid Koolaid? Slicing Through the Rhetoric of MVC vs. WebForms”. Since Rob was part of the MS-MVC team at one point, getting his view of the MVC vs. Webforms debate does sound intriguing and I’m sure many attended thinking that’s what they were ...
Technorati Tags: .NET,Kansas City Thanks to the KC development community for a great free event. The Johnson County Community College provided very nice facilities. I’m the sort of guy who would willingly drive 4+ hours each way for a free XL (or “developer medium”, as Richard Campbell calls it) T-shirt, but got a lot more than that out of the event. Here's a recap of the sessions I attended: Why Kanban? speaker: Troy Tuttle Troy is a “pragmatic agilist” at AdventureTech (not AdventureWorks – I was ...
Technorati Tags: ASP.NET,ASP.NET MVC,MvcContrib I started looking at the MvcContrib grid earlier this week, and it looks promising. At the Kansas City Developer’s Conference today, Javier Lozano showed a demo using JqGrid. When I asked Javier about JqGrid, he said I might want to look at Telerik’s ASP.NET MVC Extensions Grid. Any recommendations would be welcome. (If you can give me a grid comparing the capabilities of each, that would be great ;) ...
When I was working on the TalentOn project (Promotion in MSDN Chinese) I was asked to implement a functionality that makes the top menu items highlighted when the currently viewing page was in that section. This might be a common scenario in the web application development I think. Simple Example When thinking about the solution of the highlighted menu items the biggest problem would be how to define the sections (menu item) and the pages it belongs to rather than making the menu highlighted. With ...
Technorati Tags: ASP.NET,ASP.NET MVC,localization In my last post, I talked bout creating a custom class inheriting from System.ComponentModel.Displ... to retrieve display names from resource files: [LocalizedDisplayName("Reme... public bool RememberMe { get; set; } That’s a lot of work to put an attribute on all of my model properties though. It would be nice if I could intercept the ASP.NET MVC code that analyzes the model metadata to retrieve display names to make it automatically ...
Technorati Tags: ASP.NET,ASP.NET MVC,localization The ASP.NET MVC HTML helper methods like .LabelFor and .EditorFor use model metadata to autogenerate labels for model properties. By default it uses the property name for the label text, but if that’s not appropriate, you can use a DisplayName attribute to specify the desired label text: [DisplayName("Remember me?")] public bool RememberMe { get; set; } I’m working on a multi-language web site, so the labels need to be localized. I tried pointing ...
In my presentation this past weekend at NoVa Code Camp, a member of the audience caught my final demo on video. In this demo, I combine multiple new features from MVC 2 to show how to build apps quickly with MVC 2. These features include: Template Helpers / Editor Templates Server-side/Client-side Validation Model Metadata for View Model HTML Encoding Syntax Dependency Injection Abstract Controllers Custom T4 Templates Custom MVC Visual Studio 2010 Code Snippets The projector screen is a little difficult ...

Thanks to everyone who attended my MVC 2 presentation at NOVA Code Camp. The code samples and PowerPoint can be downloaded here: Top 10 Ways MVC 2 Will Boost Your Productivity.

While ASP.NET provides an event base approach it is completely dismissed when working with AJAX and the richness of the server is lost and replaced with JavaScript programming and couple with a very high security risk. Visual WebGui reinstates the power of the server to AJAX development and provides a statefull yet scalable, server centric architecture that provides the benefits and user productivity of AJAX with the security and developer productivity we had before AJAX stormed into our lives. "When ...