getting ClientID of control inside datagrid item

  • Thread starter Alexandre Soares
  • Start date
A

Alexandre Soares

Hi,

I'm trying to get the client side id of a control inside a datagrid (ex.
myDatagridId_ctl2_myTextBoxId). On the server side code, if I try to use
((TextBox)e.ItemFindControl("myTextBoxId")).ClientID, it will just return
the ID of my textbox, so "myTextBoxId" instead of the true Client side ID. I
need this to refer to a textbox ni my datagrid using javascript (I generate
the javascript code in the ItemCreated event of the datagrid).

Thank you!
 

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

Staff online

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top