The Name property specifies the identifier used to reference the control from browser- or server-side code.


Possible Values

String


Applies to

TextLabel, TextEdit, Button, ComboBox, Container, ContainerSet, SubForm, Dropdown, Checkbox, OptionButton, DateTimeEdit, ListBox, TabControl, TabSheet, Image, Rectangle, ProgressBar, FlashUploader, Flash, FileUploader, Page Break, SubReport


Syntax

FX Code

  Procedure Content.Button1Click(Event: TDOMEvent);
  Var
    Crtl: TWebControl;
  Begin
      Crtl               := GetEventSource(Event);
      TextLabel1.Caption := Format('Button "{0}" has been pressed', Crtl.Name)
  End;

Related Topics

Properties