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

前端 未结 4 1394
别跟我提以往
别跟我提以往 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 17:59

    If you have 2 different structure that are to be rendered according to a condition then use panels

    
        
            
                " >
                 Album Description BlaBlaBla  
                
    
                " >
                 Album Description BlaBlaBla 
                    Download
                    ..... 
                
                
            
        
    
    

提交回复
热议问题