Tag | MVC Posts

An ex-colleague of mine used to call his SQL script generator "Super-Scriptmatic 2000". It impressed our then boss little, but was fun to say and use. We called every batch job and script "something 2000" from that day on. I'm tempted to call this one Menu-Matic 2000, except it's waaaay past 2000. Oh well. The problem: I'm developing a bunch of stuff in MVC. There's no PM to generate mounds of requirements and there's no Ux Architect to create wireframe. During development, things change. Specifically, ...
ASP.NET MVC 2 Features ASP.NET MVC 2 adds a bunch of new capabilities and features. Some of the new features and capabilities include: § New Strongly Typed HTML Helpers § Enhanced Model Validation support across both server and client § Auto-Scaffold UI Helpers with Template Customization § Support for splitting up large applications into ‘Areas’ § Asynchronous Controllers support that enables long running tasks in parallel § Support for rendering sub-sections of a page/site using Html.RenderAction ...
Please find how we call JavaScript Object Notation in cloud applications. As we all know how client script is useful in web applications in terms of performance. Same we can use JQuery in Asp.net using Cloud computing which will asynchronously pull any messages out of the table(cloud storage) and display them in the browser by invoking a method on a controller that returns JavaScript Object Notation (JSON) in a well-known shape. Syntax : Suppose we want to write a JQuery function which return some ...
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... ...
Last week I had the pleasure of being a guest on the Community Megaphone Podcast with Andrew Duthie and Dane Morgridge. We discussed .NET 4, C# 4, MVC 2, “geek religious wars”, and of course community. You can check out Show #5 here or directly download it. Thanks to Dane and Andrew for having me on the show ...
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 ...
Recently I was working on a project that had a large amount of roles that were going to be utilized on many different controllers and even on individual controller actions. Originally it was given to me utilizing the standard out-of-the-box way of Authorizing with MVC 1.0: //MVC’s standard authorize attribute [Authorize(Roles=”Administr... User”)] public class HomeController : BaseController { ... } I was told that role changes may occur in the future. This caused fear of the amount of work that ...
Update: I have updated the repository to include references to Fubu's Dlls instead of copying their code directly. Here’s something fun that I’ve been playing with. A few weeks ago I saw Jeremy Miller’s post “Shrink your view’s with FubuMVC’s Html conventions” and knew I had to have this functionality in my Microsoft MVC applications. I pulled the source and started writing an adapter to make it work. I hope the FubuMVC guys don’t mind that I’ve borrowed some of their hard work. What are Html Conventions? ...
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 ...
While my home development computer is fried I’m going to hack away at my backlog of non-code related posts. Today I’d like to discuss some of the advantages and disadvantages of using Microsoft MVC over WebForms. First of all, MVC is not the end all, magical platform that many people would like you to believe. In fact I wouldn’t even recommend it to beginner developers. However, if you have experience with .NET and you’re willing to put in the time to learn how MVC works, you will find that it offers ...
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. ...
As promised in the previous post, here is a first look on Visual Studio 2010 RC. i am sure many of you have downloaded the bits already so this is for those who are waiting yet. VS 2010 RC is an upgrade to the Beta 2 that was shipped last year. This build has been heavily focussed on implementing community feedback and fixing performance issues reported. The start up screen looks as below. A little darker compared to the Beta 2 build. You can read my earlier post on First look on Beta 2 here I didn’t ...
One of the cool new features of MVC 2 is the ability to automatically pick an editor template based on the meta data of each property. This meta data can be as simple as the data type of the property itself. Take an example where we have a Contact object that has a DateTime? property for DateOfBirth. 1: public partial class Contact 2: { 3: [DisplayName("First Name")] 4: public string FirstName { get; set; } 5: 6: [DisplayName("Last Name")] 7: public string LastName { get; set; } 8: 9: [DisplayName("Date ...
Note: This article is a continuation of the series on IJoinedFilter: IJoinedFilter AutoMapFilter meet IJoinedFilter In-lining mapping and injection aspects – yuck! After implementing several aspects of controller actions as compos-able filters, it became apparent that controlling the order would be import. One of the latest additions is a filter to build up a view model property with data aspects. An example would be a select list for states on a person edit view. Normally, the states would be fetched ...
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 ...
MVC 2 is adding many new features that make views more elegant to write. For example, the new EditorFor() Html helper returns the appropriate HTML input elements for a given property so you don’t have to explicitly specify text box, dropdown, or whatever control you need and can even use the [UIHint] attribute to specify the editor you want to use (either an OOTB or custom editor). This results in view markup that often looks like this: 1: <p> 2: <%=Html.LabelFor(m => m.FirstName)%> ...
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 ...
A while back I blogged about creating an MVC Delete Link with the AjaxHelper. This was based on another blog post from Stephen Walther where he explained the drawbacks of using hyperlinks for delete scenarios. HTTP and REST best practices state that GET requests should never modify a resource. The most “RESTful” implementation is is use a DELETE verb. In Walther’s post he shows two primary examples: 1) using AJAX to issue a true “DELETE” request, and 2) using individual forms to do the delete operations. ...
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 ...
A few weeks ago I blogged about the concept of a “joined” filter to apply filters to actions without attributes. I promised to demonstrate some practical uses, beyond the hello world example in that post, and now it is time to deliver :) Jimmy Bogard talks about how he does MVC view models using an AutoMapFilter to transform the model from the controller into the view model for the view. This is an excellent use of AOP to separate the concern of mapping from the concerns in the controller. When I ...
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 ...
This was definitely one of those facepalm moments, where you spend a couple of hours beating on an issue then find out it's one line of code - so hopefully folks googling the same things I did will hit on this and have a solution. Short version - if you need to HTTP post to your controller from an HTML form, and one of your fields has embedded HTML text (in my case, it was a nifty WYSIWYG text editor), you will get a very nasty error that looks something like this: A potentially dangerous Request.Form ...
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 ...
Source: Cloudy in Seattle: http://blogs.msdn.com/jnak/... Two articles explain the process of using MVC projects with Windows Azure including changing ASP providers: 1. ASP.Net MVC & Windows Azure (Post Nov 2009) 2. Using Windows Azure with ASP Providers And off you go ...
Technorati Tags: Application Architecture and Design Strategies ASP.NET design patterns. Design patterns are set of useful approaches for solving repeating problems that appears many times during developing software. By using design patterns we are not reinventing the wheel again and again. The most sommon patters are: Creational Patterns Abstract Factory Creates an instance of several families of classes Singleton A class of which only a single instance can exist Structural Patterns Adapter Match ...
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 ...
Technorati Tags: WPF WPF patterns : MVC, MVP or MVVM or…? What to use? Model-view-controler, the model-view-presenter or the new paradigm called model-view-viewmodel? MVC is kind of template and also a framework that can be used in VS 2005 and VS 2008. MVVM is a part of WPF which can be used to create windows apps. It's common practice to let the UI layer do more than it should. Without a clear separation of responsibilities, the UI layer can often become a catch-all for logic that really belongs ...
From the many available IoC containers out there, LinFu is the one that I like most. This is because it is extremely simple to use, needs almost no configuration at all, and yet it is highly flexible and extensible, if you need to do some more complicated things (you can read two good introductory articles about LinFu IoC here and here). During the last weeks, I was doing some stuff with the ASP.NET MVC framework, and I wondered how easy or complicated it would be to use the application's IoC container ...
I was giving an Entity Framework talk in Harrisburg, PA at the Central Penn Code Camp earlier today and afterwards I was talking with one of the developers that attended my session. He was a little hesitant to use Entity Framework because he didn't want to use it solely as his data layer. I explained that you don't have to use it directly as your data layer but could add another layer of abstraction. This is actually how I use Entity Framework almost exclusively. In short, how I do this is I build ...
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 ...
Often enough we have frameworks do heavy lifting for us. That's usually a good thing. But I always found it kind of sedating to let "the man" provide me with too much comfort. Especially when the framework or other SOUP library fails to perform exactly what you want. That usually leads to some grumpiness followed by some code-acrobatics to punch that square peg into a round hole – often negating the elegance and usefulness of the library call altogether. One task a framework often performs is binding. ...
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 ...