summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket484.php
blob: 89dac261c1e70bef3c8aa3f113163176e6bf57c7 (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
27
28
29
30
<?php

Prado::using('System.Web.UI.ActiveControls.*');

class Ticket484 extends TPage
{

	function onLoad($param)
	{
		new TActiveButton;
		for ($i = 0; $i<1500; $i++)
		{
			$ctl = Prado::createComponent("TLabel");
			$ctl->Text = "Label ".$i;
			$this->Controls[] = $ctl;
		}
	}

	function button2_onclick($sender, $param)
	{
		$this->label1->Text = "Button 1 was clicked ";
	}

	function button2_oncallback($sender, $param)
	{
		$this->label1->Text .= "using callback!";
	}
}

?>