You have to add a return to the code the Alex gave you

deleteQuote.Attribute.Add("onclick", "return(confirm_delete());")