我有以下内容:
@Html.BeginForm("AddComment", "Shared", new { guid = Model.VideoGuid, content="", userid = authenticatedUserId.ToString()}){
<div class="input-group">
<input name="txtCommentContent" type="text" class="form-control"><span class="input-group-btn">
<button class="btn btn-default">
<img src="~/Content/images/Message-Add.png" /></button>
</span>
</div>
}
我需要将输入控件内的文本输入作为 routeValues 的一部分传递给控件。上面的 content="" 将做到这一点。
如何才能做到这一点?