Tag | ASP.NET MVC Posts

Ever since the new ASP.NET MVC framework was announced in October, posts about it have spread about it like wildfire through the .NET blogosphere. There's usually at least 2-3 MVC stories a day that show up on DotNetKicks. At the last Philly.NET code camp in January, there was standing room only for the ASP.NET MVC talk (see photo to the right). Similar crowds have shown up at the HLS DevCon in Atlantic City, Central Jersey .NET & Fairfield/Westchester .NET user groups to hear about it. With ...
This is problematic with ASP.NET AJAX. The main Script Components are NOT sent to the client when in :Legacy” mode. This is “By design” in ASP.NET AJAX, although it is a clear limitation!! I’m investigating the problem for other solutions and will be sending an update soon. Thank you, Iman Halawany, for making me note this. I’ve been working on WCF services and ASP.NET MVC stuff lately than normal webforms, so, didn’t realize this obvious showstopper. To all my readers, I owe you a BIG apology. The ...
Scoot Guthrie's Announcement (With detailed walkthrough) Scott Hanselman's Announcement (With note on VS 2008 SP1 BETA) Resources: Installer Source Code Documentation Homepage Videos Introduction to ASP.NET MVC Preview 3 Basic Application Building with ASP.NET MVC Preview 3 Phil Haack's Northwind Demo Cross posted from weblogs.asp.net/meligy ...
Join my colleagues of the Magenic Technology Council (MTC) at the first annual Technology Summit in Chicago on June 20, 2008. This geeky, two-track, day-long mini-conference is packed with great sessions and keynotes by Rocky Lhotka and Jay Schmelzer, Group Program Manager on the Microsoft Visual Studio team. In the Developer track, members of the MTC will present on code quality, the ASP.NET MVC framework, LINQ indexing techniques, WPF and Silverlight in UX design. The Server track offers sessions ...
HTTP methods are not often thought about when coding Asp.net webforms applications. Links are GETs, buttons are POSTs and it all happens automatically. With Asp.NET MVC, and other MVC frameworks like Rails, the HTTP method used is more obvious and developers are begining to care about which they use. The problem is that GET requests tell visitors to your site, including search engines, client-side web optimizers and other automatic tools, that it is safe to make the request. Which is a problem if ...
I have been working with ASP.NET MVC for some time and yet I still had trouble trying to generate a URL in a view. URL generation is particularly important for ASP.NET MVC because it uses a routing engine to map URLs to code. If we hard code a URL then we lose the ability to later vary our routing scheme. I have found two ways that currently (ASP.NET MVC preview 2) work to generate URLs in a view. The first uses the GetVirtualPath method and seems overly complicated - so I wrapped it in a global ...
Recently I’ve been working a lot with the new ASP.NET MVC framework, with Preview 1 (bleh) and the interim drop, Pre-Preview 3? The ActionResult is a fantastic addition, making the framework far easier to test. However, I noticed I was basically doing the same thing for each test: [Test] public void TestSomething() { var actionResult = controllerUT.Something() as RenderViewResult; If ( actionResult == null ) Assert.Fail(“ActionResult was null.”); Assert.That(actionResult.Vi... Is.EqualTo(“ViewName”)); ...
ASP.NET related Kigg - Building a Digg Clone with ASP.Net MVC Part - 1 The Making of Blogo.NET Configuring & customizing the health monitoring system of ASP.NET Mobile Application related alcheMo - Technology (J2ME to BREW and iPhone porting solution) Mojax (Mobile Ajax application framework) - it provides access to device capabilities like Camera API, Location Services, Contacts and more. Android Weather Forecast - Google Weather API - Description Android Poor mans GPS - Cell (Tower) ID / Location ...
Microsoft .NET framework 3.5 Service Pack 1 and Visual Studio 2008 Service Pack 1 now have public BETAs. The service pack of Visual Studio 2008 has really interesting stuff. Highlights I'm interested in are performance improvements in HTML editor, collection of JavaScript intellisense hotfixes plus new ones enabling better JavaScript intellisense for libraries like jQuery, JavaScript Code Formatting, ASP.NET Routing engine (the one used in ASP.NET MVC, it is actually developed as separate component), ...
ASP.NET MVC is going pretty HOT these days so I thought I should post some links to the ASP.NET MVC Videos which are hosted on www.AspAlliance.com. Video: Introduction to the ASP.NET MVC Framework Video: ASP.NET MVC Framework Unit Testing Video: Passing Parameters Across Pages Using ASP.NET MVC Framework Video: Url Rewriting Using ASP.NET MVC Framework Video: Introduction to the MVC Toolkit Video: Using JavaScript with the ASP.NET MVC Framework Video: Implementing Controller Action Authentication ...
Coming Friday, June 20th in Downers Grove, IL The Magenic Technology Summit is a full day of Magenic-provided training. We have lined up an impressive array of speakers and topics in two tracks, .NET development and Microsoft servers. And we have lined up two keynotes. Our first keynote speaker is Jay Schmelzer, who is the Group Program Manager for RAD tools. This basically means he runs the teams for all the Visual Studio designers and related RAD tools. He’s an excellent speaker and should provide ...

I just published a new podcast on www.gridviewguy.com. In the podcast I talk about the new ASP.NET MVC Framework. You can download the podcast using the link below:

Introduction to the ASP.NET MVC Framework

In my previous installment of recapping the events from ALT.NET Open Spaces, Seattle, I covered pretty much the opening ceremonies as it were. The weather was definitely interesting the entire weekend. Who would believe that we had snow, hail and rain for most of the time we were there in the latter half of April? Mind you it didn't stick, but if you believe in God, there is something to be said of ALT.NET coming to town. Coverage Galore Jeffrey Palermo was gracious enough to capture the opening ...
I've got news for everyone out there: VB.NET isn't going away anywhere. I've got other news: C# is a great programming language. So is F#, and Iron Ruby, and Iron Python, and <insert language here>. In fact, now more than ever we have choices as to what language we can use for our development, and for some reason *that* fact has been lost in the noise of the language argument. Here are some facts: VB.NET has been a great language for those who were exposed to VB 6.0 and made for a very easy ...
This (04/15/2008) was a fun day! It started out with breakfast where the only thing I could eat was muffins so I ate two of them. I had breakfast with Venkat Subramaniam. We talked a little bit about what we are working on and what exciting things are happening in the technology field. Later during the breakfast I spotted Sahil Malik. A gentleman that I am I immediately went to him and told him about his great book about the ADO.NET framework. The first session was about Silverlight which was given ...
Sourced from: The official Microsoft ASP.Net site New features are being added to ASP.NET and ADO.NET this year that increase the power of the .NET Framework 3.5. These enhancements target: Enabling high-productivity data scenarios by using the ADO.NET Entity Framework, ADO.NET Data Services, ASP.NET MVC, and ASP.NET Dynamic Data. Supporting test-driven development by using a powerful and extensible ASP.NET MVC framework. Creating the best server for rich clients by using AJAX history support and ...
Today was extremely busy and exhausting as well. The routine here is to wake up early, grab a boxed breakfast and coffee in the huge ballroom at the hotel and then run off to where the buses are parked to take you to the Redmond Microsoft campus. I scheduled meetings with some Microsoft personnel today along with poking my head into some of the sessions that were going on at the Conference Center. I continued to evangelize computer science education and spoke with interested people about the concerns ...
As I am learning about TDD and MVC, one thing comes up. How should I arrange my models, views and controllers? Of course, I know I need to set up the models view and cotrnollers folders for ASP.NET MVC, but what view actions should go into a controller? An example may help illustrate my question: In the default project template for an ASP.NET MVC app, you get a HomeController which has to actions in it: Index and About. Should the about really be an action on the home controller? I guess my initial ...
Now that Unity has been released into the wild, there has definitely been a bit of interest swirling around it. One of my key wants for a good IoC container is basic interception capabilities. My criteria for evaluating a container usually comes down to the following: Configurability (XML, DSL, Code) Dependency Resolution, usually opinionated Lifetime Management (Per Thread, Pooled, Singleton, Transient, etc) Extensibility for Interception So, I realized that Unity was missing some of these things ...
So now it's over. Conference is finished but we will all remember the best moments spent in last Saturday (04.07.2008). The pizza, gifts and knowledge about new things which we all learned is priceless and that's why I would like to thanks to all speakers and organizers. I also added some pictures from conference: 1. Welcome 2. Maciej Szczepanski and Pawel Lesnikowski in Test Driven Development (TDD) in practice. 3. Martin Kulov and "Debugging and Crash Dump Analysis of ASP.NET Web Sites". 4. Jaroslaw ...
One Line Statement Microsoft's IoC container Unity, hosted on CodePlex as an Application Block for Enterprise Library is now released in ver. 1.0. Introduction If you do not know what IoC is, you might want to check sample articles: The semi standard Dependency Injection (DI) and Inversion of Control (IoC) article by Martin Fowler (Tip, read as much as you can from this guy's writings - and thank me for suggesting it) [Warning: Not .NET Specific] Understanding IoC Container (Simple "down to code ...
For someone like me, who has never traditionally done test-driven development, it sucks. It's hard to get used to writing the test first, then when you write your test, it's easy to start writing the code to make the test pass and forget that you're doing TDD and just continue coding. It's also hard to know WHAT needs to be testing and HOW to test everything you need to, at the appropriate isolation level. To add to my frustration, I starting my first fully test-driven project (on my own) and learning ...
UPDATE: More posts on the subject xUnit.net RC3 Just Released Earlier this week, I wrote about the latest release of xUnit.net RC2. Since that time, Brad Wilson and Jim Newkirk released a new version to fix some of the issues with regards to TestDriven.NET integration and ASP.NET MVC integration. You can read more about the issues here. As always you can get the latest bits here. The Installer If you browse to the releases page of xUnit.net, you will notice an installer. This installer will help ...
UPDATE: More posts on the subject xUnit.net RC3 Just Released Relooking at xUnit.net RC2 UPDATE: xUnit.NET RC2 New Drop includes ASP.NET MVC support and better GUI runner. Details here. UPDATE: Added Static Methods mention and F# - Thanks to DevHawk! I've been a big fan of such testing frameworks as NUnit and MbUnit, but recently I've found myself getting pulled more towards xUnit.net at least to play around with for any of my code samples that I write for this blog and on my own time. I'm not really ...
We are delivering Virtual Tech Days on April 9th and 10th (http://www.virtualtechdays... delivering a series of webcasts on different tracks ranging from SQL - BI to Visual Studio for Devices. Infact the three important tracks are SQL Server 2008, Visual Studio 2008 and Windows Server 2008. These would be in depth sessions covering specific topics on each of the above products. For Visual Studio we have dedicated tracks for Application Development and Lifecycle management using Visual Studio 2008 ...
I started working with sandcastle to generate api documentation for the Asp.Net MVC - MvcContrib project (http://MvcContrib.org). I wanted to get some feedback as to how useful the general API Namespace/Class listings are. Below are two of the outputs of the documentation. I encourage you to take a quick look at it so that you can provide feedback. To Subscribe to this RSS feed use this url: http://feeds.feedburner.com... Here is an html versions that the project could host online. http://mvccontrib.googlecod... ...
I thought I would take a small moment to introduce myself and give some context around my opinions. I have been developing software professionally for 12 years in consulting, product development, corporate IT, premium Brand web sites and e-commerce. I until recently worked for a well known golf equipment company as the Director of eCommerce Technology. In this role I have worked on a number of ecommerce sites and have learned a great deal about online retail for both new and used products. I have ...
As I've noted before, Dave Laribee was recently interviewed by Scott Hanselman on Episode 104 of Hanselminutes. The reaction that I've seen has been pretty positive from what I've seen. It's great to see the ALT.NET message being spread outside the core believers group. Many people can be turned off after a few discussions on the altdotnet mailing list and not get the real gist of what the group is about. Dave did a great job explaining the core principles of ALT.NET which are: Use the right tool ...
As of yesterday, the ASP.NET MVC Release 2 source code has been made available on CodePlex. ScottGu made the source drop announcement earlier this morning. Congrats to Phil Haack and the ASP.NET MVC Team for shipping the source code. It's worth noting, it's not Open Source in the way that it's just a zip file and no outside patches are to be accepted, unlike IronRuby. The plan going forward is to make incremental drops of the source code going forward. As always, check out Jeffrey Palermo's MVCContrib ...
I've been investigating the ASP.NET MVC framework for some months, in between a major client project in January and holidays in Frebruary. In that time the ASP.NET team have been beavering away and released the MVC Preview 2 March CTP (download it here). Jeffrey Palermo has some great blog posts over at codebetter.com which detail some of the improvements. The big news for me was that I could finally upload any applications to my development site, which is on a shared hosting server at discountasp.net, ...
Update: IoC and Unity - The Basics and Interception As Grigori Melnik noted on my blog previously as well as his own, there was a brand new drop of the Unity Application Block as of March 4th. This by far was a huge update with a lot of breaking changes. That teaches me to use a CTP of any product and blog about it actively as it compares to other Inversion of Control (IoC) containers. Glad I didn't do a lot on ASP.NET MVC just yet but I have a few good projects going on the side with that now. Where ...
Scott Hanselman just updated and/or added some terrific screencasts showcasing ASP.NET MVC, which just went wild as Preview 2 today. He talks about some significant changes from the December CTP and walks through several examples that make understanding and implementing the MVC simple, understandable, and (IMO) ultimately sellable to the uninitiated/uninterested. He covers, with great clarity, several methods for displaying data, working with forms in CRUD operations and helper classes that will ...
With MIX, and meeting the announced MVC roadmap, the new versions of AS.NET Extensions are now publicly available.ASP.NET MVC Framework Preview 2 is available also as separate download, same as Silverlight 2.0 BETA 1 (and Expression studio, Silverlight VS 2008 Tools). Download Links: ASP.NET 3.5 Extensions Preview 2 ASP.NET MVC Preview 2 Silverlight 2 Beta 1 Expression Studio 2.0 Beta Silverlight 2.0 Tools Beta 1 for Visual Studio 2008 UPDATE: Silverlight 2.0 Beta 1 SDK UPDATE: Internet Explorer ...
A quote from Jeffery Palermo regarding the Code Camp Project: "The mission of the first release is to provide an ASP.NET MVC Framework solution that can serve as the CodeCamp website for a user group. The project will be able to track and manage multiple conferences for a single user group." Funny enough, Pallermo never seemed to care about code camps. Suddenly he - and others - became the world’s expert on code camps, scheduling speakers, displaying sponsor logos and arranging catering. I wonder, ...
It's beginning to look like the start of the Code Camp Season, with at least 12 scheduled over the next 4 months. If you are organizing a code camp, there is a new open source project that Jeffery Palermo has started called CodeCampServer. The project aims to provide a solution that can server as the web site for a code camp and will be able to track and manage multiple conferences for a single user group. The project will use the ASP.NET MVC Framework and the MvcContrib. The project hasn't had their ...
I want to first off thank the 45 members of the Kansas City .NET User Group who attended the presentation held last night. Myself, John, and Doug appreciate the dialog and questions about the topic of ASP.NET MVC Framework and hope to see more interest in the topic as it furthers in development at Microsoft. For those of you who couldn't make it or just want to see what the MVC Framework is all about, check out the samples and presentation located at the end of this post. Recap of A Model View Controller ...
Today, I was playing around with ASP.NET MVC Framework when I came to an interesting situation. I was displaying Categories from the Northwind database as ActionLinks. When clicked on the link it will popup a confirmation box asking whether you want to delete the item or not. Here is the code to display the link and the confirmation box: <% foreach (var category in ViewData) { %> <%= Html.ActionLink<Category... => c.Delete(category.id), category.CategoryName, new { onclick ...
I have been pretty busy lately. But anyway here is the list of my upcoming articles on GridViewGuy. I will update the links when the articles are published. 1) Unit Testing Membership and Role Providers in ASP.NET 2.0 2) URL Rewriting Using ASP.NET MVC Framework 3) Dynamic Data Support in ASP.NET 3.5 Framework 4) Extension Methods 5) Using Cache Attribute to Cache Methods Stay tuned on www.gridviewguy.com :) ...
Tonight, put on the DVR and come out to the Rockville .NET Users Group (RockNUG) for a presentation by Jeff Schoolcraft on ASP.NET MVC. The timing of course couldn't be more appropriate as ScottGu has recently posted about the ASP.NET MVC Framework Update in which he talks about a few pain points I know I've been having as well as others such as: Can be deployed in partial trust in the \bin directory Improved routing features and infrastructure Test wizard now supports and probably one of my favorite ...
Today was .NETwork usergroup second gathering. The usergroup is the first and only large/effective "offline" usergroup in Egypt (although there're many others in INETA). They had a great success in their first gathering when they brought Steven Forte to talk about SQL Server 2008 new features for developers and ASP.NET MVC design pattern. I had a detailed post about it in my GWB blog at that time. Check it out for details. Background: First To Second Gathering (Warning: Boring Part!!) The .NETwork ...
This is also from an internal mail to SilverKey Tech Egypt office dev. team. Slightly modified this time! (Yes, I know. I should stop this habit of link collection and get back to writing - hopefully soon) Joe On .NET - Windows Workflow Foundation Tutorial Series SourceMaking (Design Patterns, Antipatterns, Refactoring) Brennan’s Blog » Blog Archive » Intellisense for jQuery in Visual Studio 2008 Happy Coding: OOP and FOOP Linq to SQL DataContext Lifetime Management - Rick Strahl's Web Log Dan Driscoll's ...
Reading the news that Ruby.NET is dead although doesn't feel the best thing to hear, is still logical, and more explicitly it's even "right". After all, it reminded me with the other story about the death of AJAX.NET Professional. I wrote a detailed take on that earlier (in my former blog) and although you might consider this spamming, I feel the same talk needs to be brought back into conversation, because I feel like I want to say the same things, so, I'm quoting it entirely here in this blog. ...
It all started with an email Mohamed Hossam (AKA, Bashmohandes) sent to SilverKey Tech. (the company I work for) local office here in Egypt, referring to the article "Foundations of Functional Programming - Part 1 - B# .NET Blog". It inspired me to send few more language links: Linklist 03022008 - Dynamic programming design patterns, Erlang/C# AMQP Client, AOP - Nauman Leghari's Blog James Kovacs' Weblog - Syntactic Sugar, Compiler Candy, and Other Sweets Charlie Calvert's Community Blog : Expression ...
The Rockville .NET Users Group (RockNUG) will be holding their Februrary meeting on the 13th at 6:30PM-9PM. This month, Jeff Schoolcraft will give an introduction to ASP.NET MVC that we have all come to know and love, to a point of course... The details are as follows: An Introduction to ASP.NET MVC presented by Jeff Schoolcraft Come walk with me as I lead you on a gentle, relaxed tour of the ASP.NET MVC Framework. I'll demystify the forest of three letter acronyms. Then we'll take a journey through ...
Few days ago I wrote a post about Url Rewriting Using RewritePath Method. The basic idea was to rewrite the path to the correct one inside the Application_BeginRequestPath method. This worked out okay but the string manupilation was a bit ugly. ASP.NET MVC Framework gives you the complete control over the URL's. So, you can easily change the URL to anything you like. Let's say I have a url like the following: Articles/[id] and I like to to display the URL like this: Articles/[id]_[title of the article] ...

I just published an article "Getting Started with the ASP.NET MVC Framework". The article explains the MVC framework using a real world scenario. I am sure you will like the article.

Today, I played around with the new ASP.NET MVC Framework. I have to admit it is quite intriguing. I created a small application in which the user can select a particular category and view all the articles related to that category. When the user clicks on a particular article the application redirect the user to the appropriate article. The first thing is to create a CategoriesController which managers the categories. Here is the implementation. public class CategoriesController : Controller { [ControllerAction] ...
For many of my current ASP.NET projects, I've been using the Model View Presenter (MVP) for this. However, there are many ways to implement this and if you ask someone, you'll likely get a differing opinion each and every time. Such as the case with the Model View Presenter. I've covered this before, but in the context of SharePoint, so now I'm just going to stick with ASP.NET and the concepts itself. The Model View Presenter Martin Fowler came up with the concept for the Model View Presenter back ...
I have been working on some new videos for AspAlliance which will be posted on the website on weekly basis. Here are some of the upcoming and new videos: 1) Introduction to the Dynamic Website Project 2) Unit Testing ASP.NET Pages Using WatiN 3) Unit Testing ASP.NET Pages Using Watir 4) Introduction to the ASP.NET MVC Framework 5) Implementing MVP Framework for ASP.NET Application You can find the complete list of videos at www.aspalliance.com/videos Enjoy ...
Many of you know that I've participated in many Code Camps over the last year, both as a speaker and as an attendee. The one thing that I've noticed is that there seems to not be a lot of resources for planning and organizing a code camp, which leads to very different experiences for speaker signup, schedule planning, etc. Jeffrey Palermo just announced a new open source project hosted on GoogleCode that promises to do just that. CodeCampServer is a free, open source Code Camp management web application ...