net mvc中怎样把textbook设置成只读或不可编辑

net mvc中怎样把textbook设置成只读或不可编辑,第1张

Step 1. 下载KindEditor 首先到KindEditor官网下载(目前是4.1.7版本),解压后删除jsp、php、asp、examples文件夹,放入Asp.netMVC项目中的Scripts文件夹中。 Step 2. 添加HomeController public class HomeController : Controller { // // GE...

哈哈你给我说的时候愣了一下,

<select disabled=disabled>

</select>

其实很简单的,你看这个,不就是disable在HTML的表现了么

你看DropDownList的Attribute,new一个进去不就哦了呗~会写不,,,哎给你写一个吧

@Html.DropDownList("RoleId", ViewData["RoleId"] as SelectList, new { disabled = "disabled" })


欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/tougao/11291646.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-15
下一篇2023-05-15

发表评论

登录后才能评论

评论列表(0条)

    保存