asp.net core 绑定下拉

浪淘沙2周前后端16

   public List<SelectListItem> zplx { get; set; }

  [BindProperty]

  public Qy_Gw Qy_Gw { get; set; } = new();

 zplx = ManageHelper.DropSelect("pz_gwxz", "dictname", "length(dictno)=4", "dictno asc");


 <select class="form-select" asp-for="Qy_Gw.zplx" asp-items="Model.zplx" lay-verify="required">

     <option value="">请选择</option>


 </select>


相关文章

asp.net core razor 写入读取cookie集合

@{     Layout = null; } <form method="post">...

echarts获取点击事件

  myChart.on('click', (params) => {      // 检查是否点击了系列数据   ...

asp.net core SqlSugar 多库切换

  private readonly SqlSugar.ISqlSugarClient _db;     ...

JNTemplate 模板标签传递url参数

一、模板 private readonly SqlSugar.ISqlSugarClient _db;  public Index1M...

asp.net 取得邮政Ems物流数据

asp.net 取得邮政Ems物流数据

一、引用dllBouncyCastle.Crypto.rar二、SM4加密using System; using System.Collections.Generic; usi...

发表评论    

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