Pouya Samie
Pouya Samie

Reputation: 3723

Get clicked item ID in posted data on clicking item command in repeater using ASP.NET

I want to get the ID of the Command-button on repeater that has been clicked in posted data on a server when it has been click.

When I check the posted data it is something like this:

ctl00$ctl00$MainContentPlaceHolder$MainContentPlaceHolder$lvEstates$ctl00$MainContentPlaceHolder_MainContentPlaceHolder_lvEstates_ctl00_colEdit_cmd.x = 7 ctl00$ctl00$MainContentPlaceHolder$MainContentPlaceHolder$lvEstates$ctl00$MainContentPlaceHolder_MainContentPlaceHolder_lvEstates_ctl00_colEdit_cmd.y=9

Why does it show in X and Y? How can I find which item was clicked?

It was the first item in repeater and the column was 15 (zero based).

Upvotes: 1

Views: 150

Answers (0)

Related Questions