I tried:

```
<option value="<%# Eval("DataID")%>" selected="(<%# Eval("NewID")%>==<%# Eval("DataID")%>)?'selected':''"> <%# Eval("ColorName")%></option>

```

but output i am getting(inspect element)

```
<option value="13047" selected="(13050==13047)?'selected':''"> ..BLACK</option>

<option value="13048" selected="(13050==13048)?'selected':''"> .CHARCOAL</option>

<option value="13049" selected="(13050==13049)?'selected':''"> BANANA</option>

```

Is there any other way to use conditional operator or If condition in Repeater