blob: 6a06a0f47cbdebc5af6361a25f219de555672214 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
class Ticket21 extends TPage
{
public function onLoad($param)
{
parent::onLoad($param);
if(!$this->IsPostBack)
$this->setViewState("clicks", 0);
}
public function doClick($sender, $param)
{
$clicks = $this->getViewState("clicks");
$clicks++;
$this->label1->setText("Radio button clicks: $clicks");
$this->setViewState("clicks", $clicks);
}
}
?>
|