1
所以我試圖在asp.net中做一個簡單的事件處理程序,但它似乎並沒有工作有人可以告訴我我做錯了什麼? TY 所以什麼IM做的是一個登錄錯誤處理程序,如果用戶插入錯誤的用戶或通過調用此事件事件處理程序不工作asp.net
AddHandler UserFailed(Err.Number), AddressOf userError
Public Event UserFailed(ByVal ErroNo As Integer)
MsgBox("The user does not exists" & vbCrLf & "or the password is wrong" _
& vbCrLf & vbCrLf _
& "Error: " & errorNo)
End Sub
,我宣佈誤差 Private Sub userError(ByVal errorNo As Integer) Handles curUser.UserFailed
我從沒有工作的意思是,當我加入在「Err.Number的」的
AddHandler UserFailed(Err.Number), AddressOf userError it says the following "addhandler or remove handler statement event operant must be a dot qualified expression or simple name" sry im noob xD