Me.btnDelete.Attributes.Add("onclick", "return confirm('Are you sure you want to delete?';")
I want to put an asp:button in the asp:datagrid, and want the same warning. Of course you can't just declare its attributes this way when its in a datagrid, so i need to know how to set the attribute for it.
Thanks
Nick
Edited by DryCube, 26 August 2005 - 02:18 PM.