mvc radiobuttons in foreach

后端 未结 3 962
伪装坚强ぢ
伪装坚强ぢ 2020-12-14 13:31

I\'m using MVC and I have some RadioButtons in a foreach:

    foreach (var item in group) {
                    
                                 


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-14 13:54

    One way how to use radiobuttons in foreach

     @{
        int i = 0;
        foreach(var item in group)
          { 
             i++;
           
           
              
              
           
        
    
        
           
              
              
           
        
          }
    
        }
    

    Hope it helps ;)

提交回复
热议问题