Kayıtlar

Eylül, 2017 tarihine ait yayınlar gösteriliyor

Asp.Net Repeater içerisinde Koşula Göre Repeater Satır Rengini Değiştirme - CSS to Conditionally set Asp.Net Repeater Row Background Colour using C# VB.Net

Asp.Net Repeater içerisinde Koşula Göre Repeater Satır Rengini Değiştirme - CSS to Conditionally set Asp.Net Repeater Row Background Colour using C# VB.Net protected string defineCSS(string tc) //Css Fonksiyonu         {             string sitil = string.Empty;             if (tc == "1234567891")             { sitil = "p-3 mb-2 bg-primary text-white"; } // name of the platinum CSS class.              else             {                 sitil = "p-3 mb-2 bg-danger text-white";             }                    return sitil;         }  <ItemTemplate>                                 <tr class='<%#defineCSS(Convert.ToString(Eval("tc"))) %>'>                                     <td><%#Container.ItemIndex +1 %></td>