Using the following Eval script for setting ID property causes error. Error message: the server tag is not well formed.
You can't do it.
Why do you need to? If it's so you can reference it at some point, you can access the client-side id via the property ClientID.
Example, as requested:
');" value = "click to get id for <%# Container.ItemIndex %>" />