how do you call a function in VB.NET?
Printable View
how do you call a function in VB.NET?
Specify the name of the function.
There has to be more to this question. :rolleyes:
lol :D
just wanted to see if questions were still getting answered in here:p
now that I have your attention:rolleyes:
I have a ASP.NET ?
I have a delete button in my datagrid, that diplays a confirm message then deletes the record. All works fine except I have to click the button twice for it to work...
Public Sub DeleteBid(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.DeleteCommand
Dim selectedRow As String = DataGrid1.DataKeys(e.Item.ItemIndex)
Dim btnDelete As Button
btnDelete = e.Item.Cells(4).Controls(0) '<---2nd column, first control
btnDelete.Attributes("onclick") = "javascript:return confirm('Are you sure you want to delete \n Bid Record " & selectedRow & "?')"