LinkButtons within Repeater control

G

Guest

I have created a repeater with a linkbutton for each databound item.

When I fire off the repeater controls ItemCommand event I execute the
following...

For indx = 0 To rpContacts.Items.Count - 1
Dim btnMyContact As LinkButton =
CType(rpContacts.Items(indx).FindControl("btnContact"), LinkButton)
....

NEXT

This works and I can access all of the properties of the linkbutton

What I need to do is determine which linkbutton was clicked and then fire
off a click event for that button.

any suggestions?

Gary T.
 
S

Scott Allen

The LinkButton can raise a Click event, in which case the sender
parameter is a reference to the LinkButton, you'll just need to
coherce it to the proper type.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,237
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top