Is there a way to access a POST value from the View (without passing by the controller)
@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
<fieldset>
@Html.TextBox("SomeValue")
<input type="submit" value="Submit" />
</fieldset>
}
The value being posted is @SomeValue
What is the right syntax for @SomeValue
I think the forms collection could be accessed by:
…but why? It defeats the purpose of MVC.