Niouzes.org  

Précédent   Niouzes.org > Forum > Newsgroup microsoft.public.fr.* 5 Forum > Newsgroup microsoft.public.fr.dotnet.vc
S'inscrire FAQ Membres Calendrier Recherche Messages du jour Marquer les forums comme lus



Réponse

 

LinkBack Outils de la discussion Modes d'affichage
  #1 (permalink)  
Vieux 12/09/2007, 16h51
johnmott
 
Messages: n/a
Par défaut Sample code: Add delete confirmation to a GridView Control.

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

Réponse avec citation
Alt Today
Advertising
Google Adsense
 
This advertising will not be shown
in this way to registered members.
Register your free account today
and become a member on
Niouzes.org
Standard Sponsored Links

Réponse
Tags: , , , , , ,



Outils de la discussion
Modes d'affichage

Règles de messages
Vous pouvez ouvrir de nouvelles discussions : nonoui
Vous pouvez envoyer des réponses : nonoui
Vous pouvez insérer des pièces jointes : nonoui
Vous pouvez modifier vos messages : nonoui

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Discussions similaires

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


Fuseau horaire GMT. Il est actuellement 07h57.

Italiano - German - English - Español


Édité par : vBulletin® version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 © 2007, Crawlability, Inc. Tous droits réservés.
Version française #13 par l'association vBulletin francophone


Politique - Droit - Philosophie - Football - Medicine - Française - Bricolage - Photo - Mac Os X - Divers - Physique - Jardinage
Mecanique - Moto - Photographie - Rail - Route - Aviation - Cinema - Linux - Psychanalyse - Finance - Enigmes - Rugby
Environnement - Histoire - Programmes TV - Education - Travail - Voyages - Windows - Immobilier - Cuisine
Windows XP - Excel - Word - Outlook - Access - Internet Explorer - Office - Vista

Page generated in 0,19758 seconds with 11 queries