Using the ASP .NET 4.0 DetailsView ItemCommand event to set the value of a fields textbox (edit modus) or label (read modus)
If you are using ASP .NET DetailsView control and use a TemplateField containing a textbox for displaying the fields text and a LinkButton to update the textbox on postback, you should use the DetailsView.ItemCommand event