Hi there,
This issue has been reported before, and is described here:
http://p2p.wrox.com/topic.asp?TOPIC_ID=45586
The solution I am presenting is a little verbose though; it's easier to change the code in ContentList.aspx.
vb around line 32 to:
' Delete button found; add a confirmation dialog
deleteButton.Attributes.Add("onclick",
"if (!confirm('Are you sure you want to delete this content item?')) return false;")
Notice how the code only returns something when the user clicks Cancel. Previously, by returning true when you clicked OK, the default postback handler isn't triggered anymore.
Hope this helps,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.