文档介绍:Introduction to Microsoft Web PI and WebMatrix
Mohamad Iqbal
Microsoft Student Partner | UNIKOM
/Web
1
Agenda
What is WebMatrix & Who is it for?
Getting Started with WebMatrix/Razor
Coding Web Pages with Razor Syntax
Other Cool Things You Can Do
Publish a Website
Getting Started w/The Web PI
2
What is WebMatrix & Who is it for?
Complete Package for building apps
IIS Express, , SQL Compact
FREE!
3
Getting Started with WebMatrix/Razor
Web Platform Installer
Installs IIS Express, SQL Compact, WebMatrix
Optional Installs: VS 2010 Express, popular blogs, templates, CMS, eCommerce sites, etc..
http://
4
WebMatrix
Start from Scratch…
5
WebMatrix
Start from Apps/Templates…
6
DEMO
A Quick Web Site from an App
7
Coding Web Pages with Razor Syntax
Adding code to a page
Coding Basics
Combining Text, Markup & Code
8
Coding Web Pages with Razor Syntax
@ { var msg = "hello"; }
…
***@msg, the current time is: ***@
Add Code with the @ symbol
Declare variables with the var keyword
Create code blocks with braces { }
Use semicolons inside code blocks to end statements ;
Code is case sensitive!
Use objects with dot notation
Comments // and /* */ for multiline comments
9
DEMO
Quick code samples
10