Hi,
How to get listview data key on button click?
Thanks
Listview data key
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Mar 27, 2012, 3:40 AM EDT
If you want to Get Data Key value on Click of ImageButton/LinkButton, you can set the DataKey value to CommandArgument property of your control and then in Click handler you can get the value from CommandArgument property .
ImageUrl="~/Images/edit.png">
Thanks