mvc中,如何利用Ajax.BeginForm()将textarea中的值传到Controllers中
@using(Ajax.BeginForm(newAjaxOptions{HttpMethod="post",InsertionMode=InsertionMode.In...
@using (Ajax.BeginForm(new AjaxOptions
{
HttpMethod = "post",
InsertionMode = InsertionMode.InsertAfter,
UpdateTargetId = "newanswers",
OnBegin = "openDialog",
OnComplete = "dvcomplete"
}))
{
<textarea id="questionanwer" rows="15" cols="15"></textarea>
<input type="submit" id="submitquestion" value="提交" style=" float:right;"/>
} 展开
{
HttpMethod = "post",
InsertionMode = InsertionMode.InsertAfter,
UpdateTargetId = "newanswers",
OnBegin = "openDialog",
OnComplete = "dvcomplete"
}))
{
<textarea id="questionanwer" rows="15" cols="15"></textarea>
<input type="submit" id="submitquestion" value="提交" style=" float:right;"/>
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询