SHARE
TWEET

ASP.NET Web Pages - Adding Razor Code

Badereddine Aug 21st, 2019 51 in 148 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ASP.NET Web Pages - Adding Razor Code
  2.  
  3. Razor Markup:
  4. Razor is a simple markup syntax for embedding server code (C# or VB) into ASP.NET web pages.
  5. Download file on MediaFire: https://ror4.com/9t6BXgZ
  6.  
  7. Razor Syntax for C#:
  8. C# code blocks are enclosed in @{ ... }
  9. Inline expressions (variables or functions) start with @
  10. Code statements end with semicolon
  11. Variables are declared with the var keyword, or the datatype (int, string, etc.)
  12. Strings are enclosed with quotation marks
  13. C# code is case sensitive
  14. C# files have the extension .cshtml
  15. Download file on MediaFire: https://ror4.com/2Q9GjGs
  16.  
  17. Razor Syntax for VB:
  18. VB code blocks are enclosed in @Code ... End Code
  19. Inline expressions (variables or functions) start with @
  20. Variables are declared with the Dim keyword
  21. Strings are enclosed with quotation marks
  22. VB code is not case sensitive
  23. VB files have the extension .vbhtml
  24. Download file on MediaFire: https://ror4.com/c8sbqw
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top