简体   繁体   English

Asp.net Mvc 如何将文本框更改为复选框

[英]Asp.net Mvc how to changed Text Box to Check Box

Hello everyone could you help me with this few problem that i'm facing i want to convert text box to check box which of this code should i changed大家好,你能帮我解决我面临的这几个问题我想将文本框转换为复选框我应该更改哪些代码

This is the Code-- Click Here and this is the view-- I want to changes the remember me text box Click Here这是代码--单击此处,这是视图--我想更改记住我的文本框单击此处

Thanks!谢谢!

使用 CheckBoxFor HTML 助手代替 EditorFor

@Html.CheckBoxFor(model => model.RememberMe)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM