[ASP.NET] Is it possible to use databound values as parameters in inline code?

Cass404

New member
I have a ListView control that shows a list of users through databinding.
I have defined custom Item and LayoutTemplates.

One of the rows is:
<asp:Label ID="Label1" runat="server" Text='<%# Eval("user.name") %>' /></a>

The databinding works fine, but I would like to add some additional controls only to the row that contains the currently logged in user. Can I somehow get the value the Eval returns into an inline variable to perfom a check on it (see if the name equals the name of the logged in user) ? Or can I somehow iterate through the listView in the codebehind file after it has been databound and insert some lines in the item where it finds a match ?
 
Back
Top