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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
PANKAJ KUMAR40 reputationPosted May 21, 2013, 2:49 AM EDT
you can use this...
http://forums.asp.net/t/1216076.aspx/2/10
divya146 reputationPosted May 21, 2013, 3:04 AM EDT
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 PandeyRank #642 · 3.7K reputationPosted May 21, 2013, 5:04 AM EDT
go to aspx page and in button script write this code.
OnClientClick="return confirm('your message');"
ex..
mark as answered if helpfull