Delete confirmation

  • Thread starter Thiago Augusto Perine via .NET 247
  • Start date
T

Thiago Augusto Perine via .NET 247

I suppose this way is better:

//declaring my own LinkButton
protected LinkButton myLinkButton;


//adding a client-script in my LinkButton
myLinkButton.Attributes.Add(
"onclick",
"return window.confirm('Are you sure do you want to delete ?');"
);

I think this way is better because you can have another linkbuttons (in which you don?t need the confirmation) in the same form.

I hope it?s helpful.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,193
Latest member
TopCryptoTaxSoftwares2024

Latest Threads

Top