Introduction to WebMatrix in the WebMatrix & Razor website creation Series

Source: Internet
Author: User

WebMatrix IntroductionWebMatrix is a free and lightweight Web development tool developed by Microsoft. It provides a simple way for us to create a site. It includes IIS ExpressWeb Server), ASP. NETWeb Framework), and SQL Server Compact embedded database ). It also provides a simple extension tool that allows your site to combine some popular open-source applications. In addition, you can easily switch from WebMatrix to Visual Studio and SQL Server. You can use WebMatrix to develop dynamic page files based on ASP. NET, Razor, C #, and VB, or create HTML, CSS, JavaScript, and other files. If you create a Web site, you can use WebMatrix as a lightweight tool. In this way, you do not need to endure the depressing snail bait speed of Visual Studio. ^_^!WebMatrix InstallationMicrosoft currently provides WebMatrix 2 Beta version download 1. Use Microsoft Web platform installer, click: http://go.microsoft.com/fwlink? LinkID = 2058672. Direct: http://download.microsoft.com/download/C/9/2/C9288B42-5C25-474D-A51A-1BA3749C4DBF/AspNetWebPages.msiWebMatrix

  • Run WebMatrix:

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/1P24K023-0.jpg "/>

You will see a simple interface, you need to know that this device is only 33 M after installation. You can use Open Site to Open a Site you have created, or click Telmplates to create a Site with a specified template. In App Gallery, you can download third-party open-source applications officially from Microsoft. This allows you to easily build more practical or dazzling functions.
  • Create a site:
 

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/1P24H053-1.jpg "/>

After clicking Templates, you can create an empty site, define a name for your site, and click OK.
  • After creation, the interface is as follows:
 

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/1P24K339-2.jpg "/>

After creating a site, you can click Files to enter the file editing area.

  • Compile your first page:

 

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/1P24KH5-3.jpg "/>

Open the Default. cshtml file and you can see the preceding HTML code. The @ code is Razor, which will be detailed in future articles. Then, enter some content on your page and run the page to check the result!

  • Run page

 

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/1P24G110-4.jpg "/>

  • Click Run and the result is as follows:

 

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/1P24GD2-5.jpg "/>

Summary

In general, WebMatrix is very useful, and the installation package only needs 13 M. After installation, it only has 33 M, and the running speed is also very fast, which is much better than, suitable for WEB developers. In subsequent chapters, we will detail how to use WebMatrix & Razor to create an ASP. NET site.

Resource:

Http://www.asp.net/web-pages/tutorials asp.net official tutorial)

 

This article is from the "Zhangjian technical column" blog, please be sure to keep this source http://jianle.blog.51cto.com/429692/823258

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.