Ed,
There are typically better ways of going about this, such as using the
DataKeys property, or using commandArgument s.
You can always do something like:
<input type="hidden" value='<%# Databinder.eval (Container.Data Item,
"CustomerID ") %>' runat="server" id="customerId " />
dim input as HtmlInputHidden = ctype(e.Item.Fi ndControl("cust omerId"),
HtmlInputHidden )
dim customerId as integer = cint(input.Valu e)
check out my databinding tutorial for more information:
http://openmymind.net/databinding/index.html
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Ed Chiu" <Ed****@discuss ions.microsoft. com> wrote in message
news:3A******** *************** ***********@mic rosoft.com...
Hi,
In a Datagrid ItemCommand Handler, I can use e.item.cells(0) .text to get
the value of the second column of the current row.
Is there something similar in DataList? Say I have 1 databound column
defined using <%# Databinder.eval (Container.Data Item, "CustomerID ") %>
tag, how do I get CustomerID of the current row in ItemCommand handler?
TIA