Default button in Datagrid EditItem

  • Thread starter Thread starter Olivier Matrot
  • Start date Start date
O

Olivier Matrot

Hello,
I'm trying to define the default button in a datagrid EditItem.
The problem is that during the ItemCreated event, the UniqueID property of
the button is still in the simple form, not prefixed with the namespace of
the repeater control.
TIA.
 
You might want to use Control.ClientID if you're looking to use it from javascript,
or use Contorl.UniqueID if you need to ID the control on the server. If this
is ASP.NET 2.0 and you're trying to use Page.Form.DefaultButton, then you
want the Control.UniqueID.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 

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