referring to a datagrid button from Page_Load

  • Thread starter Thread starter colonelangus
  • Start date Start date
C

colonelangus

How can I refer to a linkbutton that's a part of my datagrid from
Page_Load? myButton.property doesn't work.
myDataGrid.Findcontrol("myButton") doesn't work. I'd like to set some
onClick attributes for it.
 
Thanks for the great article! My control was in the header, too, so I
ended up using :

btnDelete =
dgParent.Controls(0).Controls(1).FindControl("btnDelete")
Not pretty, but effective.
 

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

Back
Top