In my ListView I want to use a property of the Container in an if statement on the aspx page as shown below. But I'm getting a "The name 'Container' does not exist in the current context" error. Can I not the Container in an if statement?
<ItemTemplate>
<tr>
<td>
<% if (EDIT_INDEX == (((ListViewItem)Container) as ListViewDataItem).DataItemIndex )
{%>
<span id="row<%#(((ListViewItem)Container) as ListViewDataItem).DataItemIndex %>"
Some Stuff
</span>
<% } %>