Public Event Triple_Click As EventHandler
Protected Sub youtTextBox_Click(sender As Object, e As EventArgs) Handles Me.Click
Static clickCount As Integer = 1
clickCount += 1
If clickCount = 3 Then
RaiseEvent Triple_Click (sender, e)
//TODO More...
End If
End Sub
Public Class MSG_OKCancel : Inherits System.Web.UI.UserControl
Public Event oth1_click As EventHandler
Public Event oth2_click As EventHandler
Private Sub Page_Init(sender As Object, e As System.EventArgs) Handles Me.Init
'Dim upn As UpdatePanel = Me.Page.Master.FindControl("upnMSG_OKCancel")
'Dim s As New StringBuilder()
'If upn IsNot Nothing Then
' s.Append(" function pageLoad(sender, args) {")
' s.Append(" $addHandler(document, 'keypress', onMsgBoxOKCancel_keypress);")
' s.Append(" }")
' s.Append(" function onMsgBoxOKCancel_own_keypress(args) {")
' s.Append(" if (args.keyCode == Sys.UI.Key.esc) {")
' s.Append(" $find('" & MPE_OKCancel.ClientID & "').hide();")
' s.Append(" }")
' s.Append(" }")
' s.Append(" function Oth1_SetClick(Click) {")
' s.Append(" $find('" & MPE_OKCancel.ClientID & "').value=Click;")
' s.Append(" }")
' ScriptManager.RegisterClientScriptBlock(upn, upn.GetType(), "onMsgBoxOKCancel_kpAndck", s.ToString(), True)
'End If
End Sub
...
...
...
Protected Sub oth2_ClickX(sender As Object, e As EventArgs) Handles oth2.Click
RaiseEvent oth2_click(sender, e)
End Sub
...
...
...