且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

转换Web表单剃须刀没有任何错误

更新时间:2023-02-14 17:31:52

  @ {
    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";
}