hi to all.
i m finding this exception in the following code but unable to understand ..
at bold line i find error.
i m finding this exception in the following code but unable to understand ..
Code:
Protected Sub GridView1_RowDeleting(ByVal sender As Object, ByVal e As GridViewDeleteEventArgs)
[B] Dim opd_sr As Integer = CInt(Gridview1.DataKeys(e.RowIndex).Value.ToString)[/B]
outTicketDetail.DeleteCommand = "Delete"
outTicketDetail.DeleteCommandType = SqlDataSourceCommandType.StoredProcedure
outTicketDetail.DeleteParameters.Add("@opd_sr", TypeCode.Int32, opd_sr.ToString())
'outTicketDetail.Delete()
opd_sr.ToString
End Sub
Comment