Reputation: 95
I'm trying to post some information from a form but it keeps posting null values to the Comment controller rather than what is entered on the page....
@using (Html.BeginForm("SubmitComment", "Comment",FormMethod.Post))
{
<fieldset>
<legend>Submit a comment</legend>
<input id="comment" type="text" />
<button type="submit">Submit</button>
</fieldset>
}
Any ideas?
Upvotes: 1
Views: 123