简体   繁体   中英

Convert vb.net asp.net code to C#

Checked='<%# iif(eval("isActive")="True","False","True")  %>'

What is the equivalent in c# for asp.net? I have tried my best to convert it but i could not.

Checked='<%# (bool)Eval("isActive") ? false : true %>'
Checked='<%# !(bool)Eval("isActive") %>'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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