Visual Studio raises a error when I place HTML inside the @Using block:
“> expeted”
@Using (Ajax.BeginForm("UpdateForm", New AjaxOptions With {.UpdateTargetId = "textEntered"}))
@Html.TextBox("textBox1", "Enter text")
<br />
End Using
I’m using MVC 3, Razor as the view engine, and VS2010 express.
What am I missing?
Thanks
UPDATE: answer here Razor View Engine Quirks in VB.NET
In VBHTML pages, you need to prefix HTML directly inside of code blocks (such as your
@Usingblock) with@: