Are You Sure?

Are you sure? How many times have you been asked that question by your computer when you wanted to delete something?

I don’t know about other folks, but I answer yes to that question about 99.9% of the time, even when I wasn’t really sure. It’s just habit. I’m as guilty as the next programmer of polluting my software with Are you sure? confirmations.

However, in my latest application, my customers really want a nice user experience. In addition to Web 2.0 features, I decided to abandom the delete confirmation and instead, offer an undo button. There’s a gridview on the page, and if you click the red X next to a row, it deletes, no questions asked. It also stores the deleted object in the session state and enables the Undo button. It’s just a one level undo, but I could have easily made a stacked list and pushed and popped the items. In most cases, a one level undo suffices.

Share
Line Break

Author: David (81 Articles)

David is an IT professional with over 29 years of experience (he started his career as a teenager). He has programmed in more languages and on more types of computers (and similar devices) than he can remember, including TRS-80 Model I Level 2, Commodore Vic-20, C-64 and C-128, Industrial Process Controllers, CP/M machines, and Intel 80x86+ architectures. He currently uses Microsoft .NET Framework tools and SQL Server. When he's not geeking out, he studies the Martial Art, Aikido; engages in community volunteer work; writes fiction (as well as non-fiction blogs); and does home rennovation work and is an avid and aspiring photographer. He lives in Charlotte NC, USA.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>