Here Mudassar Ahmed Khan has explained with an example, how to use IF ELSE condition in ItemTemplate of Repeater in ASP.Net using C# and VB.Net.
IF ELSE statement is not supported in ItemTemplate of ASP.Net Repeater, but using Inline Expressions and Ternary Operator with the EVAL function, a simple IF ELSE condition can be easily implemented.
↧