[Mono-dev] User control bug or feature?

Georgi Moskov g.moskov at gmail.com
Fri Jun 16 03:19:20 EDT 2006


Hi all,

   I am trying to use user controls in the following way - an .aspx
page loads dynamically a user control in Page_Load. After that it puts
the whole object in a static user control object and on every
following postback caused by the click on a submit button in the user
control it takes it from the static user control object and loads it
back on the page. I have a Response.Write in Page_Load of the user
control to check when I pass through there. Now the problem is that
when I run this on a Windows platform I see the Response.Write only
the first time as expected, because the user control object is already
initialised after that. On mono however, not only I see the
Response.Write every time, but the count of messages increases - with
one more on every next postback.

   Can anyone please tell me what I am doing wrong (aside from the
strange use of user controls) and whether this behaviour is intended
or not?

   Attached is a test case, I am using mono 1.1.15 with the standard
rpms for RHEL 4.

Regards,
Georgi Moskov



More information about the Mono-devel-list mailing list