asp.net core post

浪淘沙2个月前后端53
<form class="layui-form layui-form-pane" action="" method="post">
<button class="layui-btn layui-bg-red"  type="submit">Excel导出</button>
</form>
  public IActionResult OnPost()
  {      MessageHelper.ShowLocation("搜索了");      return Page();
  }


相关文章

普能html页面post到 cshtml页面,出现400错误解决方法

  [IgnoreAntiforgeryToken]  public class keywordsModel : PageModel  {    &n...

常用查询

 var dt = _db.SqlQueryable<object>("select * from mszs...

asp.net core rzaor page 中的ViewComponent 视图用法

asp.net core rzaor page 中的ViewComponent 视图用法

1、/Pages/Components 新建:MyViewComponent.csusing Microsoft.AspNetCore.Mvc; namespace xxts...

asp.net core razor 远程请求 认证Basic auth 模式 body传递 json

private readonly HttpClient _httpClient;    public RemoteReq...

asp.net core 绑定下拉

   public List<SelectListItem> zplx { get; set; }  [BindProperty]  public...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。