A
Andy Sutorius
Hi,
I have a datalist with a asp:button. I have onitemcommand firing when the
button is clicked. I am attempting to get the datakey of the button that was
clicked. I can retrieve a specific datakey with the following: int
intProductID = Convert.ToInt16(dlstProducts.DataKeys[0]) but how do I
retrieve the datakey of the button clicked? I have tried this
unsuccessfully: int intProductID = Convert.ToInt16(dlstProducts.DataKeys[e])
Thanks,
Andy
I have a datalist with a asp:button. I have onitemcommand firing when the
button is clicked. I am attempting to get the datakey of the button that was
clicked. I can retrieve a specific datakey with the following: int
intProductID = Convert.ToInt16(dlstProducts.DataKeys[0]) but how do I
retrieve the datakey of the button clicked? I have tried this
unsuccessfully: int intProductID = Convert.ToInt16(dlstProducts.DataKeys[e])
Thanks,
Andy