Tag | MVC Posts

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 :) ...
Note this article is primarily based on Microsoft/.Net technologies, although the principle apply to any technology. Before development of any reasonable business software project begins the following areas need to be nailed down: Application Architecture (application structure) ORM (Object/Relational Mapping - data source access and translation to/from business objects) Base framework (system framework, helper classes, base classes, etc) UI. There are many tools available that will dictate or guide ...
I was working in the MVC framework when I came accross an issue within my views. Although I was dropping controls onto the form, none of them were accessible from the code behind file. I also noticed that there weren't any designer files anywhere, which I thought was odd. After some poking around it turns out that you need to convert your MVC projects to be web applications before you get the full ASP.NET feature set. Just right click your project file and select 'Convert to Web Application' from ...
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 ...
Hello all! I find myself looking at design patterns to see if there is anything new floating about. Of course the new MVC framework keeps popping up everywhere. While I have been aware that MS released the new MVC framework for ASP.NET a while ago, each time I have read about it I have found myself shying away from it in favor of MVP. I primarily didn't like the concept of ViewState being removed or the fact that we had to go back to the old ways of tossing variables into the sky via a post or get ...
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 ...
No, I'm not leaving GWB. I am however setting up a couple of vertical blogs on Chris Williams new baby, www.ILoveVB.net. That's right, not one...but TWO blogs to add for your reading enjoyment! The first is on architecture and design with VB.NET. Over the next few weeks I'll be posting about how you can implement different patterns in your applications and how to do it with...wait for it...VB.NET! Check that one out here. The other one will have a web-focus and talk about how to work with VB.NET ...
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] ...
Oh dear, what a long time since my last blog - a hectic pre Christmas projects, a three week Christmas and another major software development in January have really had an effect. Fortunately I'm getting back on track with new development and once I'm back from a holiday in the Caribbean I'm hoping to get some serious research into new technologies including the MVC framework from Microsoft and getting my CI Factory installations up to date. As part of this new push, I looked into finally taking ...
The ASP.NET Model View Controller application allows you divide your application into layers. This division can result in better testing and clean reusable components. Let's see a very simple application using MVC project which involves unit testing. The application consists of a controller named "ProductController". public class ProductController : Controller { private NorthwindDataContext northwind; public ProductController() { } [ControllerAction] public void Index() { RenderView("Index"); } [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 ...
Jeffrey Palermo announced that he's set up an open source project for creating a web application based on the ASP.NET MVC framework for user groups to manage their code camps with! This is a great opportunity to work with other developers who are actively using the MVC framework and get some great exposure to tools like Cruise Control, NUnit, and using "stories" to identify features Check out Jeff's blog post here for more information. D ...
Few hours ago, Michael Schwarz, the creator of AJAX.NET Professional (A.KA. AJAXPro), the most successful AJAX framework for ASP.NET after Microsoft's ASP.NET AJAX Framework (A.K.A., ATLAS) has stated that he'll no longer be working on the project. Furthermore, he even recommended users to move to Microsoft's AJAX Framework instead!! The reasons Michael mentioned why he will stop the project used by 13.3% of ASP.NET developers doing AJAX work include the fact that ASP.NET AJAX is part of ASP.NET ...
Today, the CMAP user group will hold their first meeting of 2008. This meeting will be a Visual Studio 2008 InstallFest. If you hadn't registered already, too late, it's already booked up, but feel free to attend the ASP.NET MVC portion of this event. Also, DC ALT.NET is announcing our meeting for January at this event. I will have a writeup of this later on today and post here. Tentatively it is scheduled for January 15th, so sign up at our site and participate! Anyhow, the topic this month is ASP.NET ...
Last year was a very good year for me, but I'm always looking for ways to learn more and better myself for the next year. After all, it is hard to top 2007, the year in which I buy a house, get married and have a great honeymoon in Italy. So, somehow I need to top myself yet again! Anyhow, these are the things I'm looking to do this year to make me a better designer, developer, etc: General Read a new book a month Run a marathon (Well, only running 5 miles a day right now) General Development Give ...
It's time for the next installment of the monthly Caffeinated Codey awards, where the link love flows for my favorite posts from the month. For Most Obsessive Blog Comment Recovery Operation...Eric Sink for his post Be My Support Group. After losing a lengthy blog comment due to a random Firefox error, Eric describes his multi-hour effort to recover the data using a packet sniffer and some url-decoding. Eric has long since joined the dark side of the force (business and marketing), so can you imagine ...
I must admit that ASP.NET is a bit outside my realm; I did Win32 and Mobile development in C# .NET for nearly 4 years before taking a position as a Web App Developer. Therefore, I am more code-minded than web-minded, if that makes sense. I have the programming ability to do a lot of things, but making things aesthetically pleasing is where I lack most. Luckily, for me and my company, we have web designers who get paid to make things look pretty. In light of this, I’ve basically abandoned my quest ...
I just signed up the Philly.net Code camp. Did you? There are only 400 seats available! Here are the details: Our first installment of the 2008 Code Camp series will be held at the DeVry University campus in Fort Washington, PA on Saturday, January 12 from 8:00-5:30. Please register on our web site.-->Detailed directions are on the DeVry web site. Lots of code, just say no to slides! 9 hours 48 sessions (8:00, 9:30, 11:00, 1:00, 2:30, 4:00) 8 tracks 400 seats with tables (laptops welcome) Free breakfast, ...
I seem to be working more and more my lappy these days...still always on the my PC at the office but when at home the laptop has taken over from my machine of choice...strange really because I love having two monitors and find it a fantastic way to work but I guess the freedom a laptop has to offer wins the day. Anyway, I digress...seeing I was working on it more and more I decided to get myself a Christmas present in the guise of a specialist notebook mouse, I looked at several offerings from Microsoft ...
For the past couple of years, the Model View Presenter pattern has gotten a lot of attention on the .NET platform and more in particular to ASP.NET. For a thorough introduction on MVP with ASP.NET, read the article on CodeProject by Billy McCafferty. Recently, it has come to play that many now favor the Model View Controller (MVC) pattern over MVP. If you're confused about the differences between the two, check out this post which will explain it well. The basic gist is that the MVP pattern gives ...
Tampa 2008 Roadshow January 31, 2008, 8:30am - 4:00pm Microsoft - Tampa, Florida Register Join new and experienced Microsoft WinForms and Web developers for a day long FREE Developer Event covering Enterprise Library, Software Factories, and proven practices from Microsoft Patterns and Practices. Learn to increase developer productivity and application quality using Enterprise Library building blocks, code generation, and proven practices for Smart Clients, Web Clients, and Web Services. Learn how ...
The much-talked about MVC Framework that Microsoft is working on was released last week as part of the ASP.NET 3.5 Extensions. It also has some other pretty cool stuff, including Dynamic Data controls, Ajax history support, ADO.NET Data Services, updated support for Silverlight and the ADO.NET Entity Framework. Once you download it, here are some great resources to check out: Scott Guthrie's 4 part tutorial on building an MVC based application Phil Haack (the PM for the MVC Framework) Rob Conery ...
Philly.NET has recently announced the upcoming Code Camp on Jaunary 12th. As you may notice, Brian Donahue of Philly ALT.NET is leading the ALT.NET track which is shaping up to be quite good. Below are the speakers confirmed and their sessions for the code camp: ALT.NET In Practice [Panel] ASP.NET MVC - A New Way To Build Web Apps [Jeff Deville] Fundamental Domain-Driven Design [Dave Laribee] Decoupling Your Design - Dependency Injection with Windsor [Jeremy Jarrell] Design Patterns [Don Demsak] ...
As noted in some of my previous posts, there is a lot of excitement around the ASP.NET 3.5 extensions including MVC, Dynamic Data, Silverlight and so on. I have a few samples I'll be posting within the week using ASP.NET MVC with such things as Spring.NET, Castle Windsor, Object Builder and so on. In the mean time, I'm still working on the Spec# posts and some SharePoint Model View Presenter I hope to get out soon. Anyhow, there are some great links out there for doing cool stuff with ASP.NET MVC: ...
After two days of learning and understanding the new Microsoft ASP.NET MVC technology, I was very interested in use its cappabilities in some new sites. I wanted to implement simple Web Sites (no Applications), but this release does not include templates for sites, only apps. Taking a look of some blog posts from Jason, I found a excellent template for sites with Visual Web Developer 2008 . This helped me with that I needed at that time, but I also like the missing templates for items that we use ...
I've been meaning for a looong time to get my own website up and running now that I've gone independant...something that I can use as a main contact for people who want information specifically around hiring me. I've finally got it up and running here! Doing the site has brought up alot of questions around proper web development for me (read my recent post on the upcoming MVC framework for a taste of what I'm meaning). I wanted to use Divs as much as possible and stay away from tables for layout ...
When I first heard about the MVC framework, I was intrigued by one aspect that didn't seem to make sense: that the layouts of pages were not done with a designer, and that outputting the dynamic aspects of the page were done by pushing markup to the presentation from the controller. Blasphemy! We've been developing in ASP.NET for the last 7 years or so WITH the designer, which was a huge feature to add to web development (and still is)! Now we're given a framework that removes the need for a designer? ...
Last Tuesday night witnessed a relatively new kind event held in Microsoft Egypt building @ smart village. It was said to be "announcing dotNETwork user group" which I thought was some Microsoft Egypt initiative for a new offline user group model of developer community. I was so excited about so, and it was even better! The Idea The dotNETwork group is just am offline user group that's done right. It just happened to have Microsoft Egypt host the group gathering, as this is the hardest issue to maintain. ...
In a previous post, I mentioned that Jeffrey Palermo launched MVCContrib to serve as community contributions to the ASP.NET MVC ASP.NET extensions. Since that time, there has been a lot of activity on that front. Current contributions include: IoC container controller factories for containers: StructureMap, Windsor, Spring.Net and ObjectBuilder Extra View Helpers Generic Test Doubles for Unit Testing Very cool stuff and let's see more contributions on that front. Develop with passion ...
Few days back ASP.NET MVC Framework was released. Since, the framework is new there are not many UI controls available yet! But off course this is all going to change. Actually this has already started to change since Rob Conery created the MVC UI Helper Controls. Scott Hanselman used some of Rob's cool controls in his demo. The purpose of the UI helper controls is to help the developer to quickly create UI controls. So, instead of using the foreach loop to populate a DropDownList you can use the ...
So I was just reading this post by ScottGu outlining what is in store for 2008 and my head started spinning and I got faint. <rant> Did I read " ASP.NET MVC"?? Microsoft is now going to provide an MVC framework for ASP.NET instead of their dumb arse postback method? Guys, the java camp was doing this with struts almost EIGHT YEARS AGO!?! Why didn't you do this out of the box!?!?! </rant> Whew, sorry for that... back to my question... Is it just me or do you also feel like your are getting ...
UPDATE (12/17/2007): My blog has moved. This post is now located at: http://jason.whitehorn.ws/2... I am pleased to announce that aspNETserve works with the latest CTP of MVC for ASP.NET. aspNETserve has held up well against the MVC samples I have thrown its way, and has actually not required any code changes in aspNETserve. Let me know if you run into any problems with this ...
I saw Scott Hanselman screencast on ASP.NET MVC Framework. After watching the video I realized that this MVC framework is pretty much like classic ASP or atleast have some similarities. Check out the code below where I have populated a DropDownList (HTML Select Tag): <select> <% foreach (var category in ViewData) { %> <option id="ddlCategories" value = "<%= category.id %>"> <%= category.CategoryName %> </option> <% } %> </select> The controller was ...
UPDATE (12/17/2007): My blog has moved. This post is now located at: http://jason.whitehorn.ws/2... Today marked the released of the first preview of MVC for ASP.NET. While it works just fine from the free Visual Web Developer Express 2008, this release is missing a project template to help you get up an running quickly. So, I have thrown together a project template to allow you get get starting using MVC from VWD Express. Unlike ...
Yeah, the wait is OVER! The new ASP.NET 3.5 Extensions have arrived IT has the ASP.NET MVC Framework, baby Quote from the extensions homepage: What’s in the Extensions Release? ASP.NET MVC ASP.NET MVC provides model-view-controller (MVC) support to the existing ASP.NET 3.5 runtime, which enables developers to more easily take advantage of this design pattern. Benefits include the ability to achieve and maintain a clear separation of concerns, as well as facilitate test driven development (TDD). The ...
A preview of ASP.NET 3.5 Extensions is released by Microsoft. You can download this from http://www.microsoft.com/do... The following are part of this release. ASP.NET MVC ASP.NET MVC provides model-view-controller (MVC) support to the existing ASP.NET 3.5 runtime, which enables developers to more easily take advantage of this design pattern. Benefits include the ability to achieve and maintain a clear separation of ...
ASP.Net MVC Framework Links Here is a list of all of the MVC Framework Postings / links that I know of or at least have read. The Download. The download was a little more buried than I anticipated. It wasn't on the front page of asp.net, at least not when I found it. http://www.asp.net/download... From Here you can find the Quickstarts and other official Links Scott Gutherie has a good set of articles. If he's not in your blog roll, he really should be. Part 1 (Intro) Part 2 -- Url ...
ScottGu and Brad Abrams have announced the release of the first preview of the ASP.NET 3.5 Extensions. The release includes great new features like: MVC Framework ASP.NET Silverlight controls AJAX Enhancements like History support Dynamic Data Controls Entity Framework ADO.NET Data Services Grab it from here: ASP.NET 3.5 Extensions Also available is the MVCToolkit (courtesy of Rob Conery) which contains a bunch of helper extension methods you can use in your Views. You can get it here: MVC Toolkit ...
Today, the ASP.NET 3.5 Extensions were released. You can now download them here. Now people can have the opportunity to do a tech preview on a lot of cool things coming to ASP.NET including of course MVC. Scott Guthrie and Scott Hanselman also mention this on their blogs. Scott Hanselman also has a 40 minute "How To" video worth watching as well. Here is what is included in the extensions download: ASP.NET MVC ASP.NET MVC provides model-view-controller (MVC) support to the existing ASP.NET 3.5 runtime, ...
UPDATE (12/17/2007): My blog has moved. This post is now located at: http://jason.whitehorn.ws/2... The community technology preview of MVC (Model-View-Control) extensions for ASP.NET is now available for download from: http://www.microsoft.com/do... For those unfamiliar with this upcoming framework, Scott Guthrie has released a four part series on this technology that can be ...
Update 12/7 - Looks to be delayed til next week... In two previous posts, I have followed the ASP.NET MVC pattern quite intensely as TDD with Web Projects is something I'm always interested in. Anyhow, Scott Guthrie aka (ScottGu) posted the third part in his series on ASP.NET MVC. This one covers passing ViewData from controllers to views, and more specifically cover ways you can pass data from a Controller to a View in order to render a response back to a client. This covers two scenarios of passing ...

If you haven't been living under a mushroom, you're most likely aware of Scott Guthrie's posts on Microsoft's new ASP.NET MVC Framework. If you are indeed living under a mushroom, then you can check out Part 3 right here.