Server Side Events in ASP.NET Webforms MaskEditTextbox

16 Aug 20221 minute to read

The server side events present in the MaskEditTextbox control are as follows.

Event Name Description Arguments
OnFocusOut Triggers the event when the focus has been moved out from textbox.
  • e.Value– Value of the MaskEditTextbox
  • e.EventType – Event Name
  • e.Arguments – Contain keys and value of MaskEditTextbox

The following steps explains on how to define server side event for the MaskEditTextbox control.

In an ASPX page, add the MaskEditTextbox control with the OnFocusOut server side event as shown in the following code example.

  • HTML
  • <ej:MaskEdit ID="mask" Value="11" OnFocusOut="focus"  runat="server"></ej:MaskEdit>

    In the code behind, define the action to be performed.

  • C#
  • protected void focus(object Sender, EventArgs e)
         Response.Write("Server side event has been triggered");