You're already in the
@using (Html.BeginForm())
{
block, so your
var options = new OpenIdSelector();
options.TextBox.LogOnText = "Log On";
block does not have to begin with @{
. Pretty much what the error says.
You can also just move those two lines to the code block at the top, where you set ViewBag.Title
, to keep your HTML free from code as much as possible.