gtilles
Sep 9th, 2005, 05:14 PM
I have a datagrid with a column of DeleteCommand links
When clicking the links I want to have a javascript message to confirm that this is what they want to do but onClick for the LinkButton does not accept a "return ConfirmDelete()" call to javascript, only public calls in the VB code.
It works when I place it on the Form Submit but then the confirm comes up when other buttons are clicked.
How can I call a javascript routine from only the datagrid ButtonLinks?
*************************
Found my answer here!
http://weblogs.asp.net/sonukapoor/archive/2004/12/29/343685.aspx
When clicking the links I want to have a javascript message to confirm that this is what they want to do but onClick for the LinkButton does not accept a "return ConfirmDelete()" call to javascript, only public calls in the VB code.
It works when I place it on the Form Submit but then the confirm comes up when other buttons are clicked.
How can I call a javascript routine from only the datagrid ButtonLinks?
*************************
Found my answer here!
http://weblogs.asp.net/sonukapoor/archive/2004/12/29/343685.aspx