Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
1.20/5 (2 votes)
See more:
Hi,
Can you help me in fetching the repeater selected row value on click c#
I have binded an id to the repeater row and i have hidded it .On click i have to fetch that value
Posted
Updated 12-Oct-17 4:29am
Comments
Varun Sareen 17-May-13 2:15am    
have you tried something yet. The below link might help you out.

http://forums.asp.net/t/1414616.aspx/1

Regards

Varun Sareen

Read How to: Respond to Button Events in DataList, Repeater, or GridView Items. It contains the Microsoft How To that I think answers your question.

If you still have a problem you can contact me at gggustafson at gmail dot com.
 
Share this answer
 
Comments
[no name] 28-Mar-14 6:48am    
I don't have any control like button to click. I want to make whole Item clickable along with passing one id.
gggustafson 28-Mar-14 9:47am    
Are you using an ASP Repeater control? If so see How to: Respond to Button Events in DataList, Repeater, or GridView Items . If not, what are you using?
[no name] 28-Mar-14 23:11pm    
Yes I am using repeater control. But I want to make whole row clickable.
gggustafson 29-Mar-14 12:30pm    
See http://community.spiceworks.com/topic/100278-how-to-fire-button-click-event-in-repeater-control-in-asp-net.

Using Improve Solution, post your asp:Repeater code and your OnItemCommand event handler.
See How to get full row from repeater control in code behind[^].

The last paragraph contains the answer you need.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900