You could use hidden form field
e.g <input type="hidden" id="hdValue" runat="server" />
or just Label contro, which you set Visisble="false"
in <ItemTemplate>. Bind the value to it (with databinding expression) or set
in code with ItemDataBound. Then in ItemCommand you could get the value by
FindControling the hdValue control on the current Item.
I've explained some background for this type of scenarios:
Understanding the naming container hierarchy of ASP.NET databound controls
http://aspadvice.com/blogs/joteke/ar...-controls.aspx
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke http://teemukeiski.net
"SandpointGuy" <Sa**********@discussions.microsoft.comwrote in message
news:94**********************************@microsof t.com...
In the datagrid I would put key values (that I didnt want to display) in
columns marked not visible, in the gridview I would put them in datakeys.
Im need to apply greater control over my html, so Im using the Repeater
for
the first time. Ive added a linkbutton and am looking in its ItemCommand
event. But so far Im unable to figure out how to hide a key value, and
then
determine it in ItemCommand.
Any help is greatly appreciated!
Thanks, Mark