Tag | ASP.NET MVC Posts

One of the things that is keeping us busy is the Web Camps we are delivering across 5 cities. If you are a reader of this blog, and also attended one of these web camps, there is a good chance that you have seen me since I was there in all the places, so far. The topics that we cover include Visual Studio 2010 SP1, SQL CE, ASP.NET MVC & HTML5. Whenever I talk about SQL CE, the immediate response is that, people are wow that Microsoft has shipped a FREE compact edition database, which is an embedded ...
MVC 3 is becoming hugely popular thanks to Razor and the Helpers that make building web applications much easier. One of the common requirements in web development, both with web forms as well as MVC based development, is the cascading dropdownlist. Now, for Web Forms, we can use a variety of options viz. server side programming, jQuery or using the AJAX Control Toolkit’s cascading dropdownlist control for accomplishing this. I saw a few samples on the internet that used the erstwhile Microsoft AJAX ...
In this article we will use ASP.NET MVC 3 and the Windsor Container to explore ideas around modular software design. The principal aim of this guide is to show you how to store controllers and views in a separate assembly and load them at run-time. /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; ...
The Silverlight Navigation Framework offers great value when looking to map longer XAML page URLs to much shorter, friendlier and memorable ones. This feature is similar in nature to the ASP.NET MVC Routing engine. For instance, the following is a quick sample on how to leverage the Navigation Framework. For this to work, I had to: 1-Add reference to System.Windows.Controls.Nav... in my Silverlight project 2-Add the following declaration in my App.xaml page: xmlns:nav="clr-namespace:Sy... ...
In the next generation of SQL Server, codename “Denali”, there is a new feature named Data-tier Application Framework v2.0 Feature Pack CTP to enhance the data import and export with SQL Server, and currently it had been available in SQL Azure Labs. Run Data-tier Application Locally From the portal we know that the Data-tier Application CTP2 can be executed from the development machine through an EXE utility. So what we need to do is to download the components listed below. Only one thing, the SQLSysClrTypes.msi ...
In this article I'm going to demonstrate how to create a simple sign-up form using ASP.NET MVC 3. So basically in this demo you will learn the following: How to insert data to the database with Entity Framework How to validate the Form using Data Annotations How to Authenticate users after sign up using FormsAuthentication Note that before you continue reading this article be sure that you have the basic understanding about ASP.NET MVC in general. You can refer the following links below to learn ...
LDAP is not Active Directory, though Active Directory is LDAP. As someone who drinks the Microsoft Kool-Aid, I found myself using LDAP for something other than Active Directory and I thought I should share what I have found. The problem domain was to connect a new MVC application to an existing Sun One LDAP Store. First off, authenticating an MVC application using forms mode authentication and the Membership providers is straight forward. Start with the ASP.NET MVC 2 Web Application Template that ...
Doing more unit testing and I ran across this nice article on mocking up TempData. That’s great because tempdata is used a lot in controllers and you need a way to mock it for unit testing. Again, this code is in C#, so I will show you the vb version. http://weblogs.asp.net/left... Hres the StubTempDataHttpSessionState class: Imports System.Web.Mvc Imports System.Web ''' <summary> ''' HttpSessionState for TempData ...
I'm running into some bizarre behavior with JavaScript in Mobile IE 6. I have an ASP.NET MVC 3 Web App, designed primarily for Mobile IE6 (WinMo 6.5 devices) I have 2 Session variables. The first one simply contains a "0" or "1" and I can access it by doing something like this in JavaScript: var lbType = '<%= HttpContext.Current.Session... %>'; I can use it, display it in an alert, whatever... that works, no problem. The other session variable is also a string, but is a bit longer (roughly ...
Much has been talked about the new release of ASP.NET MVC, i.e. MVC 3 and the new Razor syntax and the ability to simplify the development. Razor uses the @ prefix for switching between code and HTML and that kind of simplifies it when compared to using <%: symbol as with the case in MVC and ASPX engines. Here is a nice article from David Ebbo on how all of these fit together Not just that, Razor comes with a lot of goodies. The Helper classes simplify in doing some of the common tasks, doing ...
You probably have already visited Channel 9, and if you have not I would recommend to definitely check it out. There are literally thousands of videos about development using Microsoft technologies (and more). You can watch the videos on the site using Silverlight player or you can use links on each video page for downloading. This usually works fine if you are interested in just one or a small number of videos, but it might become somewhat tedious if you want to download a bunch of them. I recently ...
In this Issue: David Catuhe, Andrea Boschin, Kunal Chowdhury(-2-), Colin Eberhardt, Mike Ormond, Doug Rathbone, John Garland, Jesse Liberty, Mike Taulty, and Pete Brown. Above the Fold: Silverlight: "ItemsControl from scratch to your own controls" Andrea Boschin WP7: "Metro In Motion #5 – SandwichFlow" Colin Eberhardt Shoutouts: Alan Cruz sent me a link to his Social Network site he's developed in Silverlight... this is another 'sign yourself up' thing... I did it, nothing bad happened :) ... Alan ...
NuGet (pronounced NewGet), is an open source .Net Package Management Tool compatible with Visual Studio 2010 both Express and Commercial Editions. This simple-yet-powerful tool offers a simple way for incorporating and managing .Net packages in Visual Studio 2010 projects. In leveraging NuGet, we get an intuitive user interface allowing the selection of available packages and an easy way to subsequently manage version upgrades or uninstalls for packages already installed via NuGet. I recently spoke ...
Join us for a special WebMatrix and ASP.NET MVC Web Camp you don’t want to miss. No matter your expertise in web development, these Web Camps are the perfect opportunity to get hands-on experience and 'unleash your coding genius'. Our interactive sessions will: Introduce ASP.NET Web Pages and WebMatrix; discuss possible uses of these Facilitate an in-depth discussion on when to migrate ASP.NET WebPages applications to ASP.NET MVC Explore new features of ASP.NET MVC 3 Take a dive deep into jQuery ...
Sometimes, the way that LINQ to Twitter materializes queries into entities isn’t immediately clear. It’s easy to get confused until you see the patterns or make a correlation between the Twitter API results and their representations as LINQ to Twitter entities. In this post, I’ll explain some of the logic behind the design of LINQ to Twitter entities and demonstrate an example of one of the more oddly designed entity types, Search. Note: They'll be talking about MVC3 during multiple sessions at Tech-Ed. ...
UPDATED 13 January 2013 This post is written at a time of Visual studio 2010. In Visual studio When you compile your project You compile every project under the same solution. For make fast resolution you can compile only the project that you are working on now. Exclude the project from debug which you currently not working on. Here is some great discussion on SO http://stackoverflow.com/qu... ...
Last week, I was interviewed by Zandra Nilocas from Microsoft Philippines. It was my first time experience to talk about something in front of the camera so it's not surprising that I looked like an idiot in that interview (you know swiveling my chair back and forth without noticing it). Anyway in the interview we talked about ASP.NET WebForms, MVC and Web Matrix in general and just to elaborate a bit of what we talked about and to clarify things out, I have decided to write this post... WebForms ...
UPDATE: Scott Hanselman has a NuGet package to automate many of these steps and you should check it out, http://www.hanselman.com/bl... Today, at Tech Ed India 2011, I delivered this session – Web Forms vs. MVC choosing the right one for web development. Although its a tricky topic, it was worth clarifying some of the patterns to decide between Web Forms and MVC. One of the demo scenarios I took ...
For those who are interested: The course looks at the features of the ASP.NET MVC 3 framework, including the new Razor View Engine, the new unobtrusive AJAX features, NuGet Package Management and more.. http://www.asp.net/mvc/plur... Technorati Tags: ASP.NET MVC,ASP.NET ...
(UPDATED 2/26/2011 with higlighted information) I previously blogged on running ASP.Net MVC in an ASP.Net WebForms project. My reference at the time was a freely-available PDF document by Scott Guthrie which covered the setup process in good detail. As I am preparing references to share with our audience at my upcoming talk at the Deerfield Beach Coders Café on March 1st (http://www.fladotnet.com/R... I found a nice blog post by Scott Hanselman on running both ASP.Net 4.0 WebForms ...
As some may have noticed, I have taken a liking to Ruby (and Rails in particular) quite a bit recently. This last weekend I spoke at the NYC Code Camp on a comparison of ASP.NET and Rails as well as an intro to Entity Framework talk. I am speaking at RubyNation in April and have submitted to other ruby conferences around the area and I am also doing a Rails and MongoDB talk at the Philly Code Camp in April. Before you start to think this is my "I'm leaving .NET post", which it isn't so I need to ...
I am scheduled to share on NuGet (http://nuget.codeplex.com/) at the Deerfield Beach Coder’s Café on March 1st, 2011. My goal for this talk is to present demos and content covering how to leverage this new neat utility to easily “package” .Net-based binaries or tools and share them with others, who in-turn, can just as easy reference and readily use that same package in their Visual Studio 2010 .Net projects. Scott Hanselman has recently blogged in great detail on creating NuGet packages. For hosting ...
Today's $10 deal of the day at http://www.apress.com/info/... is: Pro ASP.NET MVC 2 Framework, Second Edition The ASP.NET MVC 2 Framework is the latest evolution of Microsoft’s ASP.NET web platform. In this book, you’ll discover MVC’s strengths and weaknesses for yourself—and put your best-learned theory into practice ...
Later this week, I will be heading to our annual South Florida .Net Code Camp, an all-day free “Geek Fest” taking place on February 12th, 2011.This year’s code camp will be conveniently taking place at Nova Southeastern University in Ft Lauderdale. With more than 700 already registered, this year’s event is bound to exceed last year’s registration and attendance. We are also fortunate to have secured the backing of a large number of our kind sponsors, supporters and volunteers, with our efforts led ...
All of us work with Visual Studio (or the free Visual Web Developer Express Edition) for developing web applications targeting ASP.NET / ASP.NET MVC or Silverlight etc., Over the years, Visual Studio has grown to a great extent. From being a simple limited functionality tool in VS.NET 2002 to the multi-faceted, MEF driven Visual Studio 2010, it has come a long way. And as much as Visual Studio supports rapid web development by generating HTML mark up, it also added intellisense for some of the HTML ...
When we were working with ASP.NET MVC 2, we needed to write our own JavaScript to get Client-Side Validation Summary with jQuery Validation plugin. I am one of those unfortunate people still stuck with .NET Framework Runtime 2.0 and .NET Framework 3.5; meaning I am still on ASP.NET MVC 2. So I will still keep on supporting by answering any question you may have with my original code. Long awaited ASP.NET MVC 3 has been released, and it supports Client Side Validation Summary with jQuery out-of-the-box ...
Silverlight is a great product right off the shelf. I use it, love it and spend a lot of time helping the community understand it. This however, doesn’t mean that I don’t think that it can get better. If I were invited to a Microsoft Focus Group about Silverlight here is 10 things I would say: We need more navigation templates. I’ve found (4) templates that Microsoft has released (Cosmo, Windows 7, Accent and JetPack). This number needs to be around 16. In order to get more people developing for ...
Microsoft have now released Web Matrix (and ASP.NET MVC3 if you so inclined!) One signifcant utility is IIS Express which will replace Cassini It is worth noting that SP1 for VS2010 should be out in Q1. Links: http://www.hanselman.com/bl... http://www.hanselman.com/bl... http://arstechnica.com/micr... ...
The Gu and the Haack had just announced the ASP.NET MVC 3 RTM had been released yesterday. You can download the intall file, release note and source code here. As the Gu said with the ASP.NET MVC 3 there are some other productions released as well NuGet IIS Express 7.5 SQL Server CE 4 Web Deploy & Web Farm Framework 2.0 Orchard 1.0 WebMatrix 1.0 The Orchard is a CMS and blogging system which build from ASP.NET MVC 3 with the new Razor view engine which can be found here and here. Hope this helps, ...
Overview I recently needed to build a web page that would allow a user to capture some information and most importantly select multiple dates. This functionality was core to the application and hence had to be easy and quick to do. This is a public facing website so it had to be intuitive and very responsive. On the face of it it didn't seem too hard, I know enough juery to know what it is capable of and I was pretty sure that there would be some plugins that would help speed things along the way. ...
Just a quick one, seems pretty weird to me. I installed .net 4.0 on an old IIS6 box, ready to deploy a asp.net mvc app targeting .net 4.0. I thought, which to me seems logical, that I install .net 4.0, setup a new web site, new app pool, set the web site to asp.net 4.0 (other configuration also needed to run MVC on IIS6 here and here) and it would just work. Errr… No. The page cannot be displayed! Nothing to do with MVC. Apparently just because you have installed .net 4 and the option is available ...
Just thought I’d pass on the word that the Visual Studio 2010 Service Pack 1 Beta is now available to download. VS2010 SP1 Beta ships with a go live license which means you can start using it for production work though I’m not sure I’m going to be that brave until I check it out a bit first. Jason Zanders has a blog post outlining the new features/fixes included in the beta. Here are a couple BREAKING news items you’ll want to TakeNote of… VS2010 SP1 Beta BREAKS ASP.NET MVC 3 RC Razor IntelliSense. ...
Part 1 - Listing Data from Database: Let us now learn ASP.NET MVC 2 from Scratch by actually developing a front end website for the Chinook database, which is an alternative to the traditional Northwind database. You can get the Chinook database from here. As always the best way to learn something is by working on it and doing something. The Chinook database has the following schema, a quick look will help us implementing the application in a efficient way. Let us first implement a grid view table ...
A simple and straight forward article taken from http://christopherdeweese.c... which uses WCF REST Service Template 40(CS) Drop the Soap: WCF, REST, and Pretty URIs in .NET 4 Years ago I was working in libraries when the Web 2.0 revolution began. One of the things that caught my attention about early start-ups using the AJAX/REST/Web 2.0 model was how nice the URIs were for their applications. Those were my first impressions of REST; pretty ...
Goal: When loading js or css files, combine all the js files into one and all css files into one file respectively when rendering to improve on performance. Also compress if need be on the fly. In this example we use many css files and even more js files to organize the ASP.Net Mvc web app into manageable pieces. The reason for the separation is mainly because it gives the team the ability to work on different part of the web app by working on the affected css or js files. It also helps to decide ...
All-In-One ASP.NET Code Samples Introduction Download ASP.NET code samples Request ASP.NET code samples Introduction The All-In-One ASP.NET code samples demonstrate the typical programming topics about ASP.NET. These topics are either frequently asked in MSDN forums and Microsoft Support, or are requested by many developers via our code sample request function. We want to alleviate the frustration felt by developers when they are developing ASP.NET projects. Visual Studio 2008 ASP.NET Code Samples ...
Sam Abraham (Me) will be speaking at the West Palm Beach .Net Users’ Group on Tuesday November 23rd, 2010 on ASP.Net MVC3 RC, Razor syntax, ASP.Net Web Pages Helpers and NuGet. I plan on sharing an introduction to ASP.Net MVC to bring everybody up to speed then explore the latest features of the ASP.Net MVC 3 Release Candidate. I will also introduce the NuGet Library Package Manager. I hope for this talk to act as a platform for everyone to share their thoughts on ASP.Net MVC and provide their take ...
In this Issue: Martin Krüger, Vikas, Kevin Dockx, Brian Noyes, Kunal Chowdhury, Gergely Orosz, Garry McGlennon, René Schulte, Matias Bonaventura, Bart Czernicki, and Dennis Doomen. Above the Fold: Silverlight: "How to: create a nonrectangular ChildWindow - part 1" Martin Krüger Prism: "Prism Training Kit: Updated to Prism 4.0" Matias Bonaventura Shoutouts: Component Ways has a releast of their xamlDataGrid for Silverlight... might be worth a look ... check out the feature set and download the eval. ...
I had the pleasure of attending and speaking at the Tampa .Net Code Camp 2010. I covered MVC3 and NuGet. I also leveraged the lunch break to show most of Scott Hanselman’s highly rated open source PDC10 session. To watch Scott’s video please visit: http://www.hanselman.com/bl... Mr and Mrs. Keith Kabza and the VisualGov team’s hard work was quiet visible at the nicely organized event where all went smooth from early morning registration to ...
Scott Guthrie just announced the release of ASP.Net MVC 3 RC. This new release features Intellisense and syntax colorization for Razor pages. It also includes the recently renamed NuGet (formerly known as NuPack) Library Package Manager. If NuGet is new to you, please check my blog post providing a quick introduction to this useful package. I also have a quick overview of Razor that you can reference if needed. For the authoritative and complete information, please check ScottGu’s blog. To install ...
Sam Abraham (Me) will be introducing ASP.Net MVC 3 at the Tampa .Net Code Camp, taking place on Saturday November 13th, 2010. I plan to introduce ASP.Net MVC and showcase the latest and greatest features introduced with ASP.Net MVC3 including: Razor syntax, ASP.Net Web Pages Helpers and NuGet (formerly NuPack). Audience participation is encouraged and will be solicited. Look forward to seeing you all there! Here is the description and bio I submitted: Introducing ASP.Net MVC In this session, we will ...
On Thursday October 28th, 2010, I had the privilege of attending and speaking at the SoFla Local PDC10 hosted by the Gold Coast and Miami .Net User Groups. While most local PDCs focused on viewing the Redmond event, South Florida kicked it up a notch by availing some of the community’s local speakers to comment and address any questions the audience might have. I greatly enjoyed covering and answering audience questions on WebMatrix, Razor Syntax, ASP.Net Web Pages Helpers, IIS Express, ASP.Net MVC ...
Many sites have a contact form, instead of posting email addresses. Admittedly, email addresses are convenient for customers because they can use a mailto link that brings up their email client and allow them to start typing, archive the communication, and manage the thread. When I first started C# Station, that’s what I did; posted my email address for everyone. Holy cow, what a mistake. I received so much spam that my inbox was unusable. Fortunately, spam is more manageable these days, but it’s ...
With concerns of HTML 5 overshadowing or affecting the roadmap for Silverlight actively addressed in many blog posts, I decided to cover the value HTML 5 brings to another set of web-based Microsoft solutions: ASP.Net MVC 3 and WebMatrix. A direction to embrace HTML 5 can already be clearly seen in ASP.Net MVC 3 with Unobtrusive Javascript leveraging the “data-“HTML 5 attributes. Additionally, WebMatrix Razor site templates are already HTML5 and CSS3 compliant while continuing to be backwards compatible ...
Sam Abraham (Me) will be speaking at the SoFla PDC 2010 hosted by the Gold Coast and Miami .Net User Groups in Boca Raton, Florida on October 28th, 2010. The local PDC event will run in parallel to and will embrace some of the content covered and unveiled at the main PDC 2010 hosted in Redmond. This would be my third speaking event in a quiet busy October 2010 and my second visit as speaker to the Gold Coast .Net User’s Group for the month of October. I will be covering WebMatrix, Razor Syntax, ASP.Net ...
WebMatrix is a free “one stop shop” supporting all developers’ needs when creating web sites based on standard markup technologies (HTML, CSS, Javascript and jQuery). WebMatrix features an intuitive user interface to help minimize the learning curve and ease navigation and access to all application features. For instance, on startup WebMatrix enables the user to select of the following: 1-Existing sites created in WebMatrix 2-Obtain a site from one of the open source packages through Web Platform ...
I had the pleasure of speaking with Joe Homnick today about the Open Data Protocol. I presented an example on consuming OData in an MVC solution using jQuery. Joe presented on consuming OData feeds in SharePoint 2010/Silverlight 4.0 as well as a nice sample on setting up an OData service interface. I appreciate the opportunity to speak at a user group known for consistently bringing in only the very best speakers and content. At the end of the talk, I was presented with a certificate of appreciation ...
As I continue to explore ASP.Net MVC 3, I decided to share a little on NuPack Tools, a recently released Visual Studio 2010 extension. There are a few nice blog entries on NuPack already which you can access here. Figure 1 - NuPack Tools shown as a Visual Studio 2010 Extension What is NuPack Tools? NuPack Tools is a Visual Studio 2010 Extension installed along with ASP.Net MVC 3 and also available as a stand-alone install. It provides a friendly interface that automates the retrieval and installation ...
The biggest question as a new version of a product or framework comes out is whether an upgrade path from the prior version exists and if the new features introduced are worth the headache and time investment made to upgrade. For ASP.Net MVC 3, the answer is yes to both questions. Personally, I would wait until ASP.Net MVC 3 is officially released, but for those wanting to upgrade right away, details for the upgrade can be found here and are pretty straight forward. Today, I decided to tackle a potential ...
Thanks to all those who attended my session Retrofit WebForms with ASP.NET MVC at the Richmond Code Camp 2010.2. To be honest, it was my very first time speaking at a big event like this and I was quite nervous during it. I realized after the demo that I went through the topics quite faster than I should. Nonetheless, I hope my session was helpful and you learned something from it. Thank you all for asking very good questions so I can improve my presentation for next time. Please let me know if you ...