@{ ' VB.NET code in a vbhtml file ViewBag.Title = "Test Page" Dim message As String = "Hello from VB.NET" } @ViewBag.Title

@message

@If True Then @

This is a VB.NET HTML template

End If