Default button in Datagrid EditItem

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.
 
B

Brock Allen

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.
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top