Getting server control from it's clientId

A

Adam Clauss

OK, I have page with nested gridviews (.NET 2.0). So, the controls that
exist within these grids get some unique ID assigned to them when sent out
to the browser. I have javascript code which uses the clientId to send back
specifically WHICH control triggered a certain event. (The code triggers a
click event for a different server control, but I need the clientId for this
other control - actually a GridViewRow to be sent back as well.).

On the client side, when the click occurs, I get the necessary clientId and
store it into a hidden form field. I can then access this from the actual
click callback on the server side.

However, given this clientId, how can I then retrieve the server control it
is referring to? Do I have to recursively search through EVERYTHING?
 

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,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top