The value of myMessage is: @myMessage
\n\n\n@{\nvar greeting = "Welcome to our site!";\nvar weekDay = DateTime.Now.DayOfWeek;\nvar greetingMessage = greeting + " Here in Huston it is: " + weekDay;\n}\nThe greeting is: @greetingMessage
\n\nrun example Β»\n\nMain Razor VB Syntax Rules\nRazor code blocks are enclosed in @Code ... End Code\nInline expressions (variables and functions) start with @\nVariables are declared using the Dim keyword\nStrings are enclosed in quotation marks\nVB code is not case sensitive\nVB files have the extension .vbhtml\nExample\n\n@Code dim myMessage = "Hello World" End Code\n\n\nThe value of myMessage is: @myMessage
\n\n\n@Code\ndim greeting = "Welcome to our site!"\ndim weekDay = DateTime.Now.DayOfWeek\ndim greetingMessage = greeting & " Here in Huston it is: " & weekDay\nEnd Code\n\nThe greeting is: @greetingMessage
\n\nrun example Β»\n\nHow It Works?\n\nRazor is a simple programming syntax for embedding server code in web pages.\n\nRazor syntax is based on the ASP.NET framework, specifically designed for creating Web applications part of the Microsoft.NET framework.\n\nRazor syntax supports all ASP.NET features, but uses a simplified syntax that is easier for beginners to
YouTip