asp.net core 绑定下拉

浪淘沙8个月前后端187

   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>


相关文章

设置edge浏览器自动填充 input password值

<form autocomplete="off">    <input type="password" name=&quo...

asp.net core 获取url及参数

  var url = $"{Request.Scheme}://{Request.Host}{Request.Path}{Request....

asp.net core furion 返回错误信息

asp.net core furion 返回错误信息

  if (string.IsNullOrEmpty(jd) || string.IsNullOrEmpty(wd))   {...

asp.net core弹出对话框最佳实践

 public void OnGet()  {         ...

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

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

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

Aspose.Words 插入图片

        #region 创建 Word 文档   &...

发表评论    

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