问题
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";
回答1:
@{
AjaxOptions options = new AjaxOptions();
options.HttpMethod = "POST";
}
来源:https://stackoverflow.com/questions/22810453/conversion-web-form-to-razor-without-any-error