I want to write code when we click on yes button in 'Are sure you delete ? ' then we will perform delete operation in button1.click() Event
//
if(yes)
{
delete operation ;
}
else
{
}
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pankaj PandeyPosted May 21, 2013, 9:04 AM
go to aspx page and in button script write this code.
OnClientClick="return confirm('your message');"
ex..
mark as answered if helpfull
divyaPosted May 21, 2013, 7:04 AM
please try this,
Here is the way to add confirm client script at server side ,
btnDelete.Attributes.Add("onclick","return confirm('Do you want to delete the record?');")
PANKAJ KUMARPosted May 21, 2013, 6:49 AM
you can use this...
http://forums.asp.net/t/1216076.aspx/2/10