@{ var total = 0; var totalMessage = ""; @* a multiline razor comment embedded in csharp *@ if (IsPost) { // Retrieve the numbers that the user entered. var num1 = Request["text1"]; var num2 = Request["text2"]; // Convert the entered strings into integers numbers and add. total = num1.AsInt() + num2.AsInt(); totalMessage = "Total = " + total; } } Add Numbers

Enter two whole numbers and then click Add.

@* now we call the totalMessage method (a multi line razor comment outside code) *@

@totalMessage

@(totalMessage+"!")

An email address (with escaped at character): name@@domain.com