I have a data grid and in that grid its making this call:
<ItemTemplate>
<%#GroupSelectorRoleListControlExtender.GenerateGroupActuator(((GroupListItem)Container.DataItem).Id, ((GroupListItem)Container.DataItem).Name)%>
</ItemTemplate>
I would like to do something like this:
<% if (((SingleAccountGroup)Container.DataItem).Name == "blahblah") {%>
<ItemTemplate>
<%#GroupSelectorRoleListControlExtender.GenerateGroupActuator(((SingleAccountGroup)Container.DataItem).Id, ((SingleAccountGroup)Container.DataItem).Name, "portalprofile Name")%>
</ItemTemplate>
<%} %>
It of course doesn't work but hopefully you can see what I'm trying to do, it doesn't like that it's not bound. How can I put that conditional into a data grid like that?