Monthly Archives: July 2010

ASP.NET MVC 3 Preview 1 released

I must admit that the ASP.NET MVC team is so consistent in developing ASP.NET MVC framework to be better and better. Just few months after the release of ASP.NET MVC 2, now the Preview 1 of ASP.NET MVC 3 has been released.

Yes, Preview 1 maybe not interesting for some of you but it’s a good time to evaluate the framework and provides feedbacks. Tell them what you like and don’t like, this is a good time for it.

To download ASP.NET MVC 3 Preview 1 release please visit:
http://go.microsoft.com/fwlink/?LinkID=157073

New features delivered in this Preview 1 are:

  • Razor View Engine – a new http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx.
  • Multiple View Engine Support – Add View dialog now supports choosing a view engine and adding custom view engines.
  • Validation Improvements – Support for more validation attributes such as the new ones introduced in ASP.NET 4.
  • Dependency Injection at all levels – Opened up seams for applying the dependency injection when instantiating components of the framework. This allows developers to hook into the creation of models during model binding, action filters, etc.
  • Dynamic View and ViewModel Properties – These dynamic properties provide syntactic sugar to setting and accessing ViewData values making controller and view
  • Global Action Filters – allows registering action filters that apply to all ASP.NET MVC requests. This removes the need to apply a filter attribute on every controller.
  • Support for Permanent Redirects – Added new overloads for permanent redirects which issue a 301 HTTP status code instead of a 302.

The following Scott Guthrie’s blog post will guide you to get an overview of those features:

http://weblogs.asp.net/scottgu/archive/2010/07/27/introducing-asp-net-mvc-3-preview-1.aspx

And, yup I said feedback to them. You can use ASP.NET MVC forum to post any feedback you have.

Windows Phone 7 Developer Tools Beta – Released

Microsoft has just release the Beta version of Windows Phone 7 Developer Tools. It includes:

  • Visual Studio 2010 Express for Windows Phone Beta
  • Windows Phone Emulator Beta
  • Silverlight for Windows Phone Beta
  • Microsoft Expression Blend for Windows Phone Beta
  • XNA Game Studio 4.0 Beta

Here is the download link:
http://www.microsoft.com/downloads/details.aspx?FamilyID=c8496c2a-54d9-4b11-9491-a1bfaf32f2e3&displaylang=en

To get more information on it please read ScottGu’s post:
http://weblogs.asp.net/scottgu/archive/2010/07/12/windows-phone-7-developer-tools-beta-released.aspx

WebMatrix – Quick Start screen

If this is the first time you hear about Microsoft WebMatrix, I suggest you to read my previous post WebMatrix – Introduction and WebMatrix – Installation before continue reading this post.

On first-time run of Microsoft WebMatrix, below screen will be the default screen on WebMatrix.

image

if you don’t like it you can disable it by giving “Do not show this screen on start-up” a check mark. It will then run My Sites as default screen and open the last site you’re working with.

Later you want the Quick Start screen to get back you can close the opened site it will bring you the Quick Start screen and you can remove the check mark if you want.

image

Okay let’s try the menu item one by one.

My Sites

It will open a dialog with all sites you ever worked with in the list. Select a site and click OK button to open, or you can just double click the site.

image

I found that there is no way to remove a site from the list at this Beta version. Maybe it will be added in the newer version – let’s hope – err suggest to them 🙂

Site From Web Gallery

This option will open a dialog to select a website or application from Web Gallery. This is the same as installing community website or application using Web PI but in this Microsoft WebMatrix the website or application will not be installed in IIS but rather they will be stored in %user%\Documents\My Web Sites folder and will be run in IIS Developer Express by default when you’re working with the site on WebMatrix. (if you want you can also add the website or application to your computer IIS manually)

image

Site From Template

This is where all funs will start. You can create your own site from online templates listed there.

image

When you create a new site from template, you will find that there are new extensions .cshtml and .vbhtml – yep they are new extension introduced by Microsoft as ASP.NET Web Page and  it supports Razor Syntax.

If you want to learn more about them, you can visit this page:
http://www.microsoft.com/downloads/details.aspx?FamilyID=b7937c34-3b53-47b7-ae17-5a72fa700472&displaylang=en

Site From Folder

This option will let you choose a folder in your computer where a site (or even nothing) is stored. The folder will be then be the root directory of the site you will work with.

WebMatrix – Installation

If this is the first time you hear about Microsoft WebMatrix, I suggest you to read my previous post WebMatrix – Introduction before continue reading this post.

WebMatrix can be installed through Web PI 3. When this post is written the version of WebMatrix is still in Beta and Web PI 3 also still in Beta.

To get Web PI 3 Beta, you can download from WebMatrix download page:
http://www.microsoft.com/web/webmatrix/download/

or you can click below image

image

Once Web PI 3 Beta installed, it will automatically started (if it’s not you can also run it from IIS).

Then open Developer Tools tab and click Visual Studio’s customize link, you can then select Microsoft Web Matrix Beta to install.

(in below screenshot it’s disabled because I have it installed)

image

If you haven’t installed WebMatrix it will also be shown in the What’s New? tab of the Web PI 3 Beta.

Click it and then click the Install button at the bottom right of the window to start the installation.

After the installation process completed, you can run the WebMatrix and will see below dialog when you first run it.

image

That’s it! now you can start to explorer WebMatrix.

WebMatrix – Introduction

Microsoft has just introduced the new version of WebMatrix. When this post is written it’s still in BETA version.

image

If you were ASP.NET developer when it’s in 1.1 version, you might ever tried WebMatrix, it was free as it’s today. At that time there was no Express edition of Visual Studio and WebMatrix was the free tool to develop ASP.NET website if you didn’t want to buy Visual Studio.

No… this post doesn’t want to talk the old version of WebMatrix, but the new one.

What Is It?

WebMatrix is everything you need to build Web sites using Windows. It includes IIS Developer Express (a development Web server), ASP.NET (a Web framework), and SQL Server Compact (an embedded database). It streamlines Web site development and makes it easy to start Web sites from popular open-source apps. The skills and code you develop with WebMatrix transition seamlessly to Visual Studio and SQL Server.

Why Use It?

You will use the same powerful Web server, database engine and web framework that will run your Web site on the Internet, which makes the transition from development to product seamless. Beyond ensuring everything just works, WebMatrix includes new features that make Web development easier.

Who’s it for?

WebMatrix is for developers, students, or just about anyone who just wants a small and simple way to build Web sites. Start coding, testing, and deploying your own Web sites without having to worry about configuring your own Web server, managing databases, or learning a lot of concepts. WebMatrix makes Web site development easy.

Code Without Boundaries

WebMatrix provides an easy way to get started with Web development. With an integrated code editor and a database editor, Web site and server management, search optimization, FTP publishing, and more, WebMatrix provides a fresh, new Web site development experience that seamlessly bridges all the key components you need in order to create, run, and deploy a Web site.

As your needs grow, the code and skills you develop can seamlessly transition to Visual Studio – Microsoft’s premier development suite.

Take A Tour

You can download the introduction view from:
http://mediadl.microsoft.com/mediadl/www/s/silverlight/video/web/webmatrix/intro.mp4

or you can watch it online from the home page of Microsoft WebMatrix website:
http://www.microsoft.com/web/webmatrix/