Friday, April 24, 2009

Confirm alert box the e-z way

on your button or linkbutton, add the OnClientClick attribute with the following value:

OnClientClick="return confirm('Are you sure you want to delete this?');"
... />

Pretty easy, commonly requested, useful. There you go.

No comments: