Skip to main content

Basic Tutorials

Tutorial HomeBasics

Learn the basics of Razor, like using variables, if/else and loops.


Basic Examples

  1. Create variables and show using @variableName
  2. if/else and ternary operator (condition ? true : false)
  3. Loops using for() and foreach()

Working with the URL and URL Parameters (new!)

  1. Working with text URL Parameters like ?sort=ascending (new!)
  2. Working with number URL Parameters like ?id=27 (new!)