Okay, at this point, I would suggest you take a complete step back.

Decide on which approach you want to take, either putting the necessary code in the markup, i.e. using Eval, or putting it in the code behind, as Dana suggested.

If I had a preference, I would go with Dana's code.

Gary