How to concisely create optional HTML attributes with razor view engine?

后端 未结 8 1090
鱼传尺愫
鱼传尺愫 2020-12-23 16:51

I\'m looking for a way to write the following code with less lines of code (maybe 5). I suppose I could do the same thing as the selected class but this razor syntax isn\'t

8条回答
提交回复
热议问题