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
 
Back
Top