Lee

Lee

  • NA
  • 5
  • 0

ASP.NET 2.0 DetailsView OnClientClick

Aug 4 2006 5:12 AM
Hi

I have been trying to resolve this without success, maybe you can help.

I have a need to add a confirmation message when deleting a record using the DetailsView control. I have found the simplest way to do this using the OnClientClick event, the problem I'm having is I have to provide this in different languages.

I'm using local resources to provide the multi language feature.
The DetailsView uses LinkButtons.

I've added a label control to the page (label_delete_confirmation) with it's visible property set to false, with the idea of using the text value in the OnClientClick event for the delete command.

I'm not sure how to go about implementing this or if it's possible. Is this the right way to go, should I access the LinkButton programmatically? I've read various articles about GridView implementation, but I can't get them to work with the DetailsView control.

Any help, direction or advise would be greatly appreciated.

Lee