hi,
i need a different version of this code - all the examples i found are for prompting 'are you sure you want to delete?'
btnDelete.Attributes.Add("onclick", "return confirm('Are you sure you want to delete?');")
and if ok is clicked, the server side function executes, and if cancel is clicked, it doesnt
what i need is if ok is clicked server function 'A' is called and if cancel is clicked, server function 'B' is called - or alternatively, one funciton is called with a parameter that lets me know if the user clicked ok or cancel
any ideas?
i need a different version of this code - all the examples i found are for prompting 'are you sure you want to delete?'
btnDelete.Attributes.Add("onclick", "return confirm('Are you sure you want to delete?');")
and if ok is clicked, the server side function executes, and if cancel is clicked, it doesnt
what i need is if ok is clicked server function 'A' is called and if cancel is clicked, server function 'B' is called - or alternatively, one funciton is called with a parameter that lets me know if the user clicked ok or cancel
any ideas?