我对asp.net中的javascript和html助手有疑问,我可以使用javascript来填充带有html助手的div吗?像这样:
$('#example').append("@using (Html.BeginForm('Create,'Company', FormMethod.Post)"+)
"{"+
"@Html.TextBox('Name',new {@class = 'input-class'})"+
"}");
我知道填充在div中附加一个普通的html表单
$('#example').append("<form action = '/Company/Create' method = 'Post'>"+
"<input type = 'text' class = 'input-class'/>"+
"</form>")
但我不知道是否可以使用html助手