WP TutorialLesson 2Free preview
WebPages Intro
This lesson is part of ASP · All levels
Summary
ASP.NET Web Pages is a lightweight and simple web development model, where logic is written directly into the page file of the extended .cshtml or .vbhtml. This model uses Razor syntax so that server code and HTML can be mixed into one file without complex project structures. This approach is suitable for simple pages, blogs, forms, and small projects that want to be fast.
Key points
- The Web Pages page file uses the .cshtml (C#) or .vbhtml (VB.NET) extensions.
- Razor syntax combines server code and HTML into one file.
- The server code portion is placed in the @{} block or @name expression.
- Web Pages are suitable for small projects because they don't require complex project configurations.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.