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.
//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.