Home / ASP.NET Weblogs

July 2010 - Posts

Posted to:

Windows Client Developer Roundup 034 for 7/26/2010

This is Windows Client Developer roundup #34. The Windows Client Developer Roundup aggregates information of interest to Windows Client Developers, including WPF , Silverlight , Visual C++, XNA , Expression Blend , Surface , Windows 7, Windows Forms, Windows Phone and Visual Studio, sometimes even a little jQuery and HTML5. If you have something interesting you've done or have run across, or you blog regularly on the topics included here, please send me the URL and brief description via the contact link on my blog. WPF and Silverlight General WPF: Introducing MVVM for Visual Basic 2010 Part 5 (Alessandro Del Sole) Sterling OODB v0.1 Alpha for Silverlight 4 and Windows Phone 7 Released (Jeremy Likness) Exposing and Binding to a Silverlight...
Posted to:
by: 
07-23-2010, 12:36 PM

Entity Framework 4 “Code-First”: Custom Database Schema Mapping

Last week I blogged about the new Entity Framework 4 “code first” development option.  The EF “code-first” option enables a pretty sweet code-centric development workflow for working with data.  It enables you to: Develop without ever having to open a designer or define an XML mapping file Define model objects by simply writing “plain old classes” with no base classes required Use a “convention over configuration” approach that enables database persistence without explicitly configuring anything In last week’s blog post I demonstrated how to use the default EF4 mapping conventions to enable database persistence.  These default conventions work very well for new applications, and enable you to avoid having to explicitly configure...
Posted to:

Announcing the Web Camps Training Kit: July 2010 Edition

Today, we are releasing the Web Camps Training Kit: July 2010 Edition – Download it here . The kit includes all the content we presented around the world at the recent Web Camps events; presentations, demos, labs and more.  Inside the new kit you’ll find content that covers the following technologies: ASP.NET MVC 2 ASP.NET 4 Web Forms jQuery Entity Framework Visual Studio 2010 Deployment We’ve also included the agenda so if you want to run your own Web Camp with some of our content, you can do that. Let the team know if you are planning to run your own – we’ll help get the word out (webcamps [at] microsoft.com). As a bonus we’ve also included scenario based content which comes in the form of complimentary slides, demos, demo scripts and...
Posted to:

T4MVC 2.6.20, and upcoming T4MVC talk at MvcConf

I just pushed T4MVC out to the MvcContrib CodePlex site.  You can go to the T4MVC Home Page to get started with it. Last time I blogged about a T4MVC release was for 2.6.13.  In the mean time, I released 2.6.14 and 2.6.15, but they were minor updates so I just tweeted them.  You can check out the history page to see what they changed.  Now, 2.5.20 brings a more interesting new feature, so I figured I’d blog it. New feature to easily render Partials   Update (7/20/2010) : there was a small issue with this change when multiple ascx have the same name.  I just pushed a new 2.6.21 build which addresses it. This new feature was written by Evan Nagle (who is also the author of the Chirpy add-in I discussed a few days...
Filed under: , ,
Posted to:
by: 
07-20-2010, 2:18 AM

VS 2010 Productivity Power Tools Update (with some cool new features)

Last month I blogged about the VS 2010 Productivity Power Tools Extensions – a free set of Visual Studio 2010 extensions that provide some really nice additional functionality. The initial Visual Studio Productivity Power Tools release included a bunch of really useful productivity enhancements – including a much faster “Add Reference” dialog, lots of code editor additions and enhancements, and some nice IDE improvements around document tab management.  You can learn more about these features in my previous blog post . VS 2010 Productivity Power Tools Update Yesterday we shipped an update to the VS 2010 Productivity Power Tools which adds some nice new features and enhancements. If you already have the VS 2010 Productivity Power Tools installed...
Posted to:
by: 
07-18-2010, 2:00 PM

Creating and running VS 2010 Web Application Projects and Web Sites on IIS instead of the default Cassini web server

One of the clear changes in Visual Studio from Visual Studio 2005, is the dependency of VS on IIS for creating websites/web applications. In VS 2005 until its SP1 you only had the choice to create Websites that use the local cassini web server for development purposes. The Web Application Projects allows you to create the legacy style of project based sites which can run on IIS. From VS 2008, you can create both Web Application Projects as well as Websites that can run on Cassini i.e. without the dependency on IIS and the ability to create the webapp folder anywhere in your machine(Remember the days when you could only create a webapp on c: \inetpub\wwwroot coz, it required to fall into the IIS WebRoot to be able to run and debug apps locally...
Posted to:

Check out Chirpy, a very cool Add-In to run T4MVC and do many other cool things

Just a quick post to point folks to a very cool CodePlex Add-In that you may not know about.  It’s called Chirpy and can be downloaded from http://chirpy.codeplex.com/ .  The reason I discovered it is that it includes functionality to automatically run T4MVC.  In fact, it is basically the new version of the Add-In by Wayne Brantley that I blogged about a few months back.  Wayne has been working on this with Evan Nagle , who is the main owner. But note that Chirpy does a lot more than just run T4MVC automatically!  Check out Evan’s post for a complete tutorial.  To give a really quick intro, Chirpy makes it really easy to automatically: Minify your JavaScript files, using a selction of popular engines like YUI and...
Filed under: , ,
Posted to:

Windows Client Developer Roundup for 7/17/2010

This is Windows Client Developer roundup #33. A little early this week The Windows Client Developer Roundup aggregates information of interest to Windows Client Developers, including WPF , Silverlight , Visual C++, XNA , Expression Blend , Surface , Windows 7, Windows Forms, Windows Phone and Visual Studio, sometimes even a little jQuery and HTML5. If you have something interesting you've done or have run across, or you blog regularly on the topics included here, please send me the URL and brief description via the contact link on my blog. Shout-Outs Rob Relyea asks If you were selling WPF/Silverlight to a team in Microsoft, what apps would you show? WPF and Silverlight General WPF or Windows Forms CodePlex projects can be installed via...
Posted to:

Uploading a File (Or Files) With ASP.NET MVC

I wanted to confirm something about how to upload a file or set of files with ASP.NET MVC and the first search result for the phrase “uploading a file with asp.net mvc” is Scott Hanselman’s blog post on the topic. His blog post is very thorough and helps provide a great understanding of what’s happening under the hood. The only complaint I have is that the code could be much simpler since we’ve made improvements to the ASP.NET MVC 2. I write this blog post in the quixotic hopes of knocking his post from the #1 spot. Uploading a single file Let’s start with the view. Here’s a form that will post back to the current action. < form action ="" method ="post" enctype ="multipart/form-data" > < label for ="file"...
Posted to:
by: 
07-16-2010, 7:35 AM

Code-First Development with Entity Framework 4

.NET 4 ships with a much improved version of Entity Framework (EF) – a data access library that lives in the System.Data.Entity namespace. When Entity Framework was first introduced with .NET 3.5 SP1, developers provided a lot of feedback on things they thought were incomplete with that first release.  The SQL team did a good job of listening to this feedback, and really focused the EF that ships with .NET 4 on addressing it.  Some of the big improvements in EF4 include: POCO Support: You can now define entities without requiring base classes or data persistence attributes. Lazy Loading Support: You can now load sub-objects of a model on demand instead of loading them up front. N-Tier Support and Self-Tracking Entities: Handle scenarios...

< Previous 1 2 3 4 5 Next >

Archives