Tag | ASP.NET MVC Posts

From a message from Brian Keller: “Back in December we posted a set of virtual machines pre-configured with Visual Studio 2010 Beta 2, Visual Studio Team Foundation Server 2010 Beta 2, and 7 hands-on-labs. I am pleased to announce that today we have shipped an updated virtual machine using the Visual Studio 2010 Release Candidate bits, a brand new sample application, and 9 hands-on-labs. This VM is customer-ready and includes everything you need to learn and/or deliver demonstrations of many of my ...
After banging my head for days on a “A potentially dangerous Request.Form value was detected" issue when post (ajax-ing) a form in ASP.NET MVC 2 on .NET 4.0 framework using jQuery and CKEditor, I found that when you use the following: Code Snippet $.ajax({ url: '/TheArea/Root/Add', type: 'POST', data: $("#form0Add").serialize(), dataType: 'json', //contentType: 'application/json; charset=utf-8', beforeSend: function () { pageNotify("NotifyMsgConten... "MsgDefaultDiv", '<img src="/Content/images/conten... ...
Shiju Varghese posted an article on his(her) blog and said that the RTM of the ASP.NET MVC 2 had been released and available to download. You can get the installation packeage and the release note here. And based on the release note there’s no breaking changes from RC2 to RTM. Let’s play with the new ASP.NET MVC and look forward the Visual Studio 2010 RTM ...
FredNUG is pleased to announce that we have an excellent speaker lined up for March. On March 16th, we’ll start with pizza and social networking at 6:30 PM. Then, starting at 7 PM, Roberto Hernandez will present “Ramp up on ASP.NET MVC2!” The scheduled agenda is: 6:30 PM - 7:00 PM - Pizza/Social Networking/Announcements 7:00 PM - 8:30 PM - Main Topic: Ramp up on ASP.NET MVC2! with Roberto Hernandez Main Topic Description: Learn about the new features in the ASP.NET MVC2 Beta release. Learn how Areas, ...
[UPDATED 10th March 2010: Edd produced a 2nd post on using IronRuby with WPF/.NET ] [You might want to also read other GuestPosts on my blog – or contribute one?] On the 26th and 27th of March (2010) myself and Edd Morgan of Microsoft will be popping along to the Scottish Ruby Conference. I dabble with Ruby and I am a huge fan whilst Edd is a “proper Ruby developer”. Hence I asked Edd if he was interested in creating a guest post for my blog on IronRuby. If you should stumble across this post and ...
UPDATE (2011-01-28): ASP.NET MVC 3 I have a newer blog post that shows how to get Client Side Validation Summary without doing any of this. I will still be answering questions and supporting this for developers who are still using ASP.NET MVC 2. If you are on ASP.NET MVC 3, go here. Problem The MicrosoftMvcJQueryValidatio... script file, which integrates with the jQuery Validation Plugin, does NOT populate validation errors inside the Validation Summary control. I will show you how to populate validation ...
Technorati Tags: General Pluralsight is an online .NET Training library which provides online training materials for .NET developers. Example trainings available on demand: · .NET 3.5 · Agile Team Practices · ASP.NET 3.5 · ASP.NET AJAX · ASP.NET MVC · BizTalk 2006 · BizTalk Server 2006 R2 · BizTalk Server 2009 · iPhone ASP.NET · LINQ · Managed Services Engine · Silverlight 3 · SharePoint Services · SQL Server 2008 · VSTS · WCF · Windows Server AppFabric, formerly "Dublin" · Windows Workflow · WPF ...
Last week, I needed to call the SQL Reporting Services Web Service to export reports as Excel, PDF, and Word formats. I could have used the [Add Web Reference...] as the MSDN Documentation Accessing the Report Server Web Service Using Visual Basic or Visual C#, but I decided to use [Add Service Reference...]. If you are wondering what the difference is between Web Reference and Service Reference, please read this blog post by Andrew Tokeley. Goal Create a common library project which I could reuse ...
To me Azure is a new technology but in fact it's not that new. In the PDC08 Microsoft announced that their cloud computing platform had been released with the name Azure, which stand for the color of the sky. I began to play with Azure recently and will post a series of blogs for what it is and how to use it. But first of all we'd better to understand what's Azure. If we went to the official website of Azure we can find the official definition. The Windows Azure platform offers a flexible, familiar ...
One of the great new features in Visual Studio 2010 is the ability to now use code snippets inside of ASP.NET, HTML, and JavaScript files. Snippets have long been a productivity boost for regular C# code but have been sorely missing for mark up. In fact, frameworks like MVC 2 actually ship with their own snippets. There are only about 10-15 snippets that are currently shipping with MVC (and many of those are just duplicated because there are both VB and C# versions). That doesn’t seem like very many. ...
To download the source code please click here Introduction Claim-based authorization is a new model of authorization introduced in Windows Communication Foundation. This model addresses more scenarios than the popular role based security model (IIdentity, IPrincipal). This is useful when an application requires complex and fine grained control on expressing access control decisions. Role based security model may not be powerful or flexible enough and is often too coarse when we reach complex scenarios ...
I came across and found very useful, bare in mind I am relatively new to the EF and TDD so any suggestions would be welcomed. I have been very busy recently with a new project, as I am in control of this project I have wanted to do things correctly from the start, I also am using it as an opportunity to get familiar with all the newest and shiniest of Microsoft's technologies. The platform is using a combination of ASP.Net MVC 2.0 and the Entity Framework 3.0. Because I know this codebase is going ...
In this Issue: Andrea Boschin, and Walter Ferrari Shoutouts: Scott Guthrie has a great post up: About Technical Debates (and ASP.NET Web Forms and ASP.NET MVC debates in particular) SilverlightShow has Featured Author: Interview with Silverlight MVP Andrea Boschin SilverlightShow reports Silverlight MVP András Velvárt tells the story behind the creation of his portal www.response.hu, and two of his award-winning projects SilverlightShow also has an Interview with Telerik Silverlight Unit Manager ...
Hey there everyone. I was recently tasked to pitch a book to my publisher. As a first step I need to come up with an outline for the Table of Contents. This book is the standard cookbook style with an added focus on the MVC side of ASP.NET. I have been poking about at other similarly styled books to get some ideas. I think comparing ASP.NET Web Forms to ASP.NET MVC would provide some folks with a good reference point when looking at the two ways of doing things. (Thanks to my friend James Shaw for ...
In this post, we will get ourselves familiar with one of the popular Twitter API – Twitterizer & the famous Facebook SDK which was recently released by Microsoft. We will be using them in quite few of our up coming project will be doing in the near future. Go to these pages and make sure you download the packages and have the DLLs ready. “Twitter”izer This is very famous .Net library to enable easy communication with Twitter. The official Google Code page for this is - http://code.google.com/p/tw... ...
So there is this meme going around about people posting their CodeMash schedules, so I thought I would be a sheep and do the same. Primary Secondary Wednesday AM Practical B/TDD (Phil Japikse) PM Competency & Leadership in Software (Mary Poppendieck) Thursday 9:45am – 10:45am What Makes Ruby Different? (Joe O’Brien/ Mark Peabody/ Leon Gersing) Agile Iteration 0 (Ken Sipe) 11:00am – 12:00pm Maintainable ASP.NET MVC (Chris Patterson) An Introduction to MongoDB (Mike Droll) 1:45pm – 2:45pm 3:35pm ...
Over the last six months the ASP.NET team has been steadily releasing preview, then beta, and now release candidate builds of ASP.NET MVC 2. Given that the final release is not too far away, I thought it was a good time to start a new multi-part ASP.NET MVC 2 blog series that discusses the new features and how best to take advantage of them “Scott Guthrie” The first two blogs: ASP.NET MVC 2 Intro Strongly Typed Html Helpers ...
Well, another year, and heck …. even another decade and 2010 is going to be such an important year, or kick-off year for technology that I thought I would take a stab at making some technology predictions on what I think might happen this year. Technology always has these “next thing” items coming forward that it is really hard to even really know what is for real. Technologies might be quite good – but it will also take additional things like community ground swell or true behind-the-scenes business ...
Hey all! I am finally going to put my full steam into setting up my VirtualDNUG users group. With the help of the good folks over at ineta (they are providing a LiveMeeting license for us) I am hoping to host a great environment for learning. I will probably start off with topics on ASP.NET MVC and the various side projects that surround that world (Turbine, Spark View Engine, FubuMVC, etc.) but I am totally open to just about any other cutting edge .net topics as well. If you are interested in attending ...
Since I enjoyed the first edition of the ASP.NET MVC in Action book I figured I would jump on this second edition of this book and framework as quickly as I could. I just read this post from Jeffrey Palermo: http://jeffreypalermo.com/b... Which basically states that they are actively working on the next edition of the book. More importantly, the chapters that they have completed so far are in a publicly viewable location: http://github.com/jeffreypa... ...
Tech bloggers like to have a predictions post at the beginning of each year (or the end of the previous one). I’ve never actually written one before, although I have made year-ahead predictions in panel discussions for the now defunct NYSIA. Since there’s no panel this year, and since I’m taking better care of this blog, I’d thought I’d give clairvoyance a whirl right here. The following predictions are pretty random and probably not comprehensive, but I’m making it my new year’s resolution to prevent ...
Wow, it only seems like just last week I was sitting at my PC trying to determine what I was going to concentrate on in software development for 2009. I had also just started the Frederick .NET User Group (FredNUG) in September 2008 and I was trying to figure out how to get speakers scheduled. Then, things started to quickly fall into place. My local INETA mentor, Frank La Vigne, provided me with a few names of well respected .NET MVPs who would most likely be interested in speaking at FredNUG. (Thanks ...
So the issue is, you have a very large ASP.Net MVC app with many controllers and actions and don't know (or do) on how to restructure it for better maintenance. This article contains some thoughts around what my experiences were with building a large scale app with 10K+ lines of jQuery and 266 Actions dispersed over 98 Controllers. In the beginning: Yes God created .... no I created a relatively small scale Mvc app based on a very limited set of requirements, more like a XP or Agile experience or ...
In this Issue: Damian Schenkelman, Alexey Zakharov, Jeremy Likness, John Bruin, Andrej Tozon, Fons Sonnemans, Adam Kinney, Andrea Boschin, Al Pascual, Giorgetti Alessandro, Rob Eisenberg, Gill Cleeren, and Jeff Blankenburg. Shoutouts: Gavin Wignall has announced the Launch of the MSUK Partner Festive Game If you're in the UK, Tesco has this technology working: Silverlight-powered Virtual DVD now available from Tesco András Velvárt announced an interview by Karen Young when he was in Berlin: Another ...
I applaud efforts to encourage test driven development, however I find myself cringing at the examples being produced by the framework designers we are supposed to look up to. I've noticed this with the buzz around TDD and ASP.Net MVC and now that buzz is transferring to the Entity Framework. I think it is wonderful that these frameworks are designed with testability in mind. However, it is up to the developer to actually employ TDD when composing their applications. There are other ways to test, ...
Urlop ojcowski to nie tylko gry i zabawy. Wiekszosc tego wspanialego czasu spedza sie uspokajaniu bobasa oraz próbach poradzenia sobie z ciekawymi sytuacjami, jak np. wybuchowe kupki. Uwierzcie, ze okreslenie tego mianem wybuchu jest jak najbardziej odpowiednie. I wiem, ze nie takiego zdjecia mogliscie sie spodziewac po technicznym wpisie na programistycznym blogu, ale chyba dacie sobie rade. ;) Co?! JUZ czas na RC? Chyba musisz mi zmienic pampersa… Podczas mojej nieobecnosci, team ASP.NET MVC kontynuowal ...
While many of the single components of an ASP.NET MVC application are easy to test (-drive) in an isolated manner (e.g. controllers), this can be hard for some others (like e.g. model binders) - and sometimes it just doesn't make much sense to test a single piece of code in isolation (e.g. for security-related issues). In such a case, some sort of integration testing has to be done, which in the context of ASP.NET MVC typically implies the usage of a browser automation framework like e.g. Selenium ...
We have been using ASP.Net MVC for a few projects at work and the standard set of cross cutting concerns are popping up, as usual. A lot of samples exist to create filters for the scenarios (logging, exception handling, mapping, output transformations etc). We have been using many of these and they are adding a lot of excitement to the development process. However, I smell a bit of a problem with all these attributed filters. The smell of configuration over convention. Configuration isn’t always ...
Well, here I go again. This is my third try at being a blogger. Some would say that tenacity is a good thing. My wife might disagree. I've been solving business problems using the Microsoft stack for almost eight years. I've written a lot of code that I'm not proud of and I've learned a few things along the way. My intention is to share a few morsels with the development community from which I've taken so much over the years. Most of this blog's posts will probably be "SharePointy". That's not to ...
Welcome back. This time we will look at creating a simple jquery pager plugin to use with asp.net mvc project. Please note the intent is to learn the basics of jquery plugin development. The control as such is not recommended for use in production environment. I recommend having a look at the jQuery Authoring Guideline at docs.jquery.com/Plugins/Aut... Let's begin our journey into the mystery of jquery plugin. The first step is to create a self executing anonymous function. Anonymous functions ...
Welcome to eBoard Hello and welcome to this series of application development using asp.net mvc, jquery, automapper, ninject. Though the world doesn't need another blog engine, but sometimes reinventing the wheel teaches you many unknown things and it's the learning experinece that counts more than anything else. I have been using asp.net mvc + jquery for about a year now. So, it's time to put down something which will help the beginner with this technologies get a good graps of the fundamentals ...
Let's try a simple in-place edit with jquery. For demonstration purpose I am using the plain old HTML file. However, if you, wish you could apply the same technique to asp.net, asp.net mvc or php or any other web application as well. Here is the html that we will be using for the demo. <body> <div style="line-height:3xm;back... Double Click the below paragraph to edit. </div> </br></br> <div class="edit"> Lorem ipsum dolor sit amet, consectetur ...

I am typically starting this blog with the "Hello World" kind of post.  Just to give an brief summary to the curious out there this blog will be a place where I will be putting down my experience with technologies specifically asp.net mvc, jquery, sql server, sharepoint, tdd, design patterns et el.

Also, I plan to record my learnings with developing an asp.net mvc project.

 

Hey all. Just wanted to let you know that the interview that I did with Javier Lozano (lozanotek.com) is now available on DotNetRadio! This was a pretty hefty interview so I had to cut it in half. In the first half of the interview we discussed the following points. How and why was ASP.NET MVC created? What are the pain points of ASP.NET Webforms? What can a WebForms developer expect when moving to ASP.NET MVC? MVC is like BizTalk – it can do anything – it just can’t do anything out of the box! What ...
This post is a follow-up on my series about validating business objects throughout different layers of a software system - domain, persistence, and (ASP.NET MVC) GUI. It demonstrates how a self-written validation can be incorporated into a web page (using a bit of JavaScript) and how this can be mapped to a custom validation on the domain side. A short recap In the first part of the above mentioned series, we developed a simple, custom validation aspect that checks if a value really is a member of ...
We look to learn the Silverlight, WPF and ASP.NET MVC 2 over the next few months. We’ll start developing a data driven application to explore each one of these. I am now in the process of finding a sample database for use. We will start our tutorials from next week. Stay tuned until then. Technorati Tags: ASP.NET,MVC,Silverlight,WPF ...
Today I saw interesting behavior in VS2008: when you try to edit any View in the ASP.NET MVC project, main window of VS is not responding. Effect is like a some “invisible” modal dialog window is shown, and you can’t close it by Space or Enter. When you try to click in any part of VS’s window, you get an error beep. I tried to unload all of add-ins, uninstall Resharper, reset VS settings – it’s useless. Solution is here (big thank you, guys :)): uninstall “Microsoft Visual Studio Web Authoring Component” ...
This series of posts discusses the use of an Aspect-oriented programming approach for implementing the validation part of a business domain, using the ValidationAspects aspect library, that sits on top of the PostSharp aspect weaver and allows for placing Design by Contract - style attributes on properties and method arguments, as well as for easy runtime validation of an object's state. This is the third post of a three-part series that discusses the use of these validation aspects throughout the ...
[This is the second in a series of posts on getting started with the new features in Entity Framework 4 based on the demos I did in my session at TechEd Europe in Berlin last week (Nov 2009).] Code generation from the Entity Data Model (EDM) has changed significantly in version 4 of the Entity Framework. The product does retain a backwardly compatible model of code generation but also now includes T4 templates for code generation. This is a fantastic addition to the Entity Framework as many developers ...
Today I had a twittersation about build servers, and how closely they should match the development and production environments. Damian’s position was that the build server should match the development environment, while I held that the build environment should be as close to production as possible. Martin Fowler’s Continuous Integration article says: Test in a Clone of the Production Environment The point of testing is to flush out, under controlled conditions, any problem that the system will have ...
Dictionary<TKey, TValue> is a generic type that stores collections of KeyValuePair<TKey, TValue>. It is used heavily (actually the IDictionary<TKey, TValue> interface) in Asp.Net Mvc as a parameter to view helper methods. I am writing this post because I have a tendency to forget the collection initializer syntax for this type of collection, so here it is: IDictionary<string, int> collection = new Dictionary<string, int>() { { "rows", 7 }, { "columns", 2} } The nice ...
Gil Zilberfeld from TypeMock: As you may know by now (from my tweeting or by looking on the DotNetRadio schedule listed on the site) there is an upcoming interview with Gil Zilberfeld from TypeMock. He will be on the show at 5am PST. Please send in your TypeMock and unit testing questions for him. The submitters of any questions that I use on the show will get some DotNetRadio swag! Jeffrey Palermo from Headspring Systems: What you may not know is that I am scheduling an interview (possibly tomorrow) ...
The Windows Azure team announced availability of the November 2009 CTP of Windows Azure along with new Tooling for Visual studio and an improved Development Fabric as well as samples. The official announcement is given below, straight from the horses’ mouth. Today we released several new features for Windows Azure through the Windows Azure Tools and SDK. This release adds support for Visual Studio 2010 Beta 2 and VWD Express 2010 Beta 2. What’s New · Service Model UI:A redesigned and significantly ...
Going into the whole podcasting adventure was something that I didn’t know if I was ready for or not. I won’t lie, it has taken a LOT more time than I had initially estimated. But getting the opportunity to meet and interact with the people that I have has been wonderful. I thought setting up interviews, given that the site is new, would be difficult. As it turns out getting people to come on the show has worked out quite well. So much so that people are now asking to come on the show directly. Wonderful. ...
It is Friday 13th Nov 2009 - which means it is the last day of TechEd Europe in Berlin. Overall I have had a good week – high quality sessions, lots of time with customers and colleagues and a very smooth conference throughout. I spent the week doing a bunch of things. 9am Monday I was presenting on Entity Framework 4 after 4 hours of sleep and using a brand new VPC after my original failed to load following yet another blue screen from the host (the machine will be flattened next week – perhaps ...
This Friday, I’ll may have to stop a project due to limited funding. This web project is for a client who ran into a budget freeze (assumed) and haven’t been able to financially support the project until further notice. But that’s ok, most of the project is completed and they’ll have a very nice website with a web-based intranet all built in ASP.NET MVC 2 Preview 2. So, until funds start flowing, I’ve decided to start a new rebuild of Glacsy.com. Yes, another rebuild. But this time, it’ll be built ...
In an effort to continually improve as a developer, one of the things I do is read lots of books. Recently I read ASP.NET MVC in Action by Jeffrey Palermo, Ben Scheirman, and Jimmy Bogard. In short, I consider this a “must read” for anyone who is serious about developing with the ASP.NET MVC framework. I’ve heard some people say that this should not be your first MVC book because it is more advanced than other MVC books available. While I can understand that logic to a degree, I think it would be ...
Hey all. I wanted to let you know who was slated for the next interview - Javier Lozano. Javier is a .NET consultant in Des Moines, Iowa. He's an ASP.NET MVP and MCSD specializing in ASP.NET, system architecture, and training. Javier is also a co-founder of the Iowa .NET Users Group. On his blog you can find posts on ASP.NET, architecture, design patterns, .NET, XML and Indigo (WCF). Javier enjoys giving back to the community by speaking at user groups, local/regional .NET events, being active in ...
Hey all. I wanted to let you know who was slated for the next interview - Javier Lozano. Javier is a .NET consultant in Des Moines, Iowa. He's an ASP.NET MVP and MCSD specializing in ASP.NET, system architecture, and training. Javier is also a co-founder of the Iowa .NET Users Group. On his blog you can find posts on ASP.NET, architecture, design patterns, .NET, XML and Indigo (WCF). Javier enjoys giving back to the community by speaking at user groups, local/regional .NET events, being active in ...
I’ve been using ASP.NET MVC Release 1 for a bit now, and while it’s definitely not for every application, I happen to like it quite a bit. There has been a lot of activity on MS-centric blogs regarding MVC, but there are still some really mundane tasks that there could be more information on. So, this series of posts isn’t going to be anything crazy; it will, however, illustrate what options you have to do centralized error-handling using MVC 1. We’ll start at the beginning… The System.Web.Mvc.dll ...