D
Dan
I have a datagrid and want a dialog box to appear when user clicks on
the Delete link in the 3rd column of the grid (0 based, column 2), I
have the code:
Dim UpdateButton As LinkButton = New LinkButton()
UpdateButton = CType(e.Item.Cells(2).Controls(0), LinkButton)
UpdateButton.Attributes.Add("onclick", "return confirm('Are you
sure you want to Delete?')")
Is this the code to use and where do I put it? It does not work in the
Delete Command event. The Attributes/Dialog box works fine if I wire
it up to a button to test it - the question is, how do I wire it to
the user selected Delete hyperlink in the datagrid?
What am I missing?
Any help is greatly appreciated.
Dan
(e-mail address removed)
the Delete link in the 3rd column of the grid (0 based, column 2), I
have the code:
Dim UpdateButton As LinkButton = New LinkButton()
UpdateButton = CType(e.Item.Cells(2).Controls(0), LinkButton)
UpdateButton.Attributes.Add("onclick", "return confirm('Are you
sure you want to Delete?')")
Is this the code to use and where do I put it? It does not work in the
Delete Command event. The Attributes/Dialog box works fine if I wire
it up to a button to test it - the question is, how do I wire it to
the user selected Delete hyperlink in the datagrid?
What am I missing?
Any help is greatly appreciated.
Dan
(e-mail address removed)