我试图转换到剃须刀,但显示错误
<%
AjaxOptions选项=新AjaxOptions();
options.HttpMethod =POST;
%>
@AjaxOptions选项=新AjaxOptions();
options.HttpMethod =POST;
解决方案
@ {
AjaxOptions选项=新AjaxOptions();
options.HttpMethod =POST;
}
i am trying to convert to razor but showing an error
<%
AjaxOptions options = new AjaxOptions();
options.HttpMethod = "POST";
%>
@AjaxOptions options = new AjaxOptions();
options.HttpMethod = "POST";
解决方案
@{
AjaxOptions options = new AjaxOptions();
options.HttpMethod = "POST";
}