ciao!
scusate il ritardo.
allora:
codice:
If IsPostBack Then
Dim ctrlname As String = Me.Request.Form("__EVENTTARGET")
Dim ctrl As Control = Me.FindControl(ctrlname)
If ctrl IsNot Nothing AndAlso ctrl.ClientID = "btnUpRichiesta" Or ctrl.ClientID = "btnInviaRichiesta" Then
Diagnostics.Debug.WriteLine(ctrl.ClientID)
End If
'inviaRic()
End If
se clicco uno dei due tasti, tutto ok.
se nella input text do invio dicendomi che ctrl era Nothing.
però in teoria non l'ho eseguito il controllo?
o ho sbagliato nella if??