T
TJS
getting error on this code:
Dim ctrl As button = FindControl("btnDelete")
ctrl.Attributes.Add("onclick", "javascript:return confirm('Are you sure
you want to delete this ? ')")
error:
Object reference not set to an instance of an object.
btnDelete is a button inside another control called "ConfirmForm" but I
can't seem to find it to add the warning
What's missing ??
Dim ctrl As button = FindControl("btnDelete")
ctrl.Attributes.Add("onclick", "javascript:return confirm('Are you sure
you want to delete this ? ')")
error:
Object reference not set to an instance of an object.
btnDelete is a button inside another control called "ConfirmForm" but I
can't seem to find it to add the warning
What's missing ??