![]() |
| |||||||
| S'inscrire | FAQ | Membres | Calendrier | Recherche | Messages du jour | Marquer les forums comme lus |
![]() |
| LinkBack | Outils de la discussion | Modes d'affichage |
| |||
| Hi all, One of the limitations of the GridView control is that the built-in delete processing doesn't prompt for confirmation -- something thats very important for a user interface. True, you can add server side logic for this, but its much more reassuring to have a Javascript confirmation window open up and prompt. There are several techniques for doing this, just google 'Gridview delete confirm' to see them. I've figured out one which does not involve adding logic to the GridView setup, so there are fewer moving parts. And, it still preserves the ViewState. There is a small amount of C# code to perform the actual record delete, but this is mostly a client-side/Javascript technique. The sample application with source is available at App: http://www.nicecleanexample.com/View...viewconfirmdel Hope it helps. John |
| | ||||
| ||||
| |
![]() |
| Tags: add, code, confirmation, control, delete, gridview, sample |
| Outils de la discussion | |
| Modes d'affichage | |
| |
| ||||
| Discussion | Auteur | Forum | Réponses | Dernier message |
| Menu delete en tk | rootsradics | Newsgroup fr.comp.lang.tcl | 10 | 21/09/2007 13h24 |
| Sample code: Add delete confirmation to a GridView Control. | johnmott | Newsgroup microsoft.public.fr.dotnet | 0 | 12/09/2007 16h51 |
| Sample code: Add a column of radio boxes to a GridView Control. | johnmott | Newsgroup microsoft.public.fr.dotnet | 0 | 30/08/2007 20h53 |
| Sample code: Add a column of radio boxes to a GridView Control. | johnmott | Newsgroup microsoft.public.fr.dotnet.vc | 0 | 30/08/2007 20h53 |
| sample faq | Ressy | Newsgroup fr.rec.arts.musique.hip-hop | 9 | 03/03/2004 14h51 |