confirm delete
Hi everybody,
i am putting a confirm message on page load button1.attributes.add("onclick","return confirm('Are you sure want to delete this record');")
even after putting this the button is firing delete command my problem is simple if the user selects ok then the button should fire delete otherwise nothing can anybody suggest
regards jabbar
[378 byte] By [
jabbarsb] at [2007-11-11 8:02:28]

# 1 Re: confirm delete
Hi,
You are not putting confirm message on Page Load. By saying Button1.attributes.add, you ar associating a client side function with the server side button.
On click of the button, if you click on OK, the page is posted back to the server and any code written in the command button click in the code behind will be executed.
If you click on cancel, the page is not posted to the server and no action will take place
vcs at 2007-11-11 23:13:27 >
