blob: d0b8650e942b8da71dd9e329457c38fa266af51f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
class ActiveControlExpressionTag extends TPage
{
public function button1_clicked($sender, $param)
{
$this->subpanel1->Visible = true;
$data = array('1', 'two');
$this->repeater1->DataSource = $data;
$this->repeater1->dataBind();
}
public function button1_callback($sender, $param)
{
$this->panel1->renderControl($param->NewWriter);
$this->button2->Enabled=true;
}
public function button2_callback($sender, $param)
{
$this->panel2->Visible=true;
$this->Page->CallbackClient->insertContentAfter('contents', $this->panel2);
}
}
?>
|