ASP.Net: Conditional Logic in a ListView's ItemTemplate

前端 未结 4 1397
别跟我提以往
别跟我提以往 2020-12-15 17:29

I want to show certain parts of an ItemTemplate based according to whether a bound field is null. Take for example the following code:

(Code such a

4条回答
  •  不知归路
    2020-12-15 18:15

    To resolve "The server tag is not well formed." for the answers involving visibility, remove quotes from the Visible= parameter.

    So it will become:

    >
    

提交回复
热议问题