create buttons manually instead of AutoGeneratexxxButton ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to move the edit/insert/delete command buttons to a FooterTemplate in
DetailsView so I can add another button alongside them. Can anyone direct me
to sample code than indicates the event handler code for a CommandField (as
these are not available in the FooterTemplate)

Thanks much.
 
You can add Buttons or LinkButtons in the FooterTemplate whose CommandName
properties are set to any of "Delete", "New", "Update", "Cancel" and they
will trigger the methods that you specified for OnItemDeleted,
OnItemInserted, OnItemUpdated, OnItemCommand respectively (as if you had used
a CommandFieldButon that generated any or all of those buttons)
 
Thanks Phillip, that's what I was missing. When I use the AutoGenerate..
attribute the methods are created AutoMagically, I don't specify OnCommand
properties. Do I need to specify my own methods and is there a sample
somewhere of what these default methods contain?

Thanks again.
 

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