[Mono-dev] Re: User control bug or feature?

Georgi Moskov g.moskov at gmail.com
Fri Jun 16 03:57:31 EDT 2006


Sorry, I forgot to attach the archive.

On 6/16/06, Georgi Moskov <g.moskov at gmail.com> wrote:
> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestUC.tar.gz
Type: application/x-gzip
Size: 14009 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060616/bb2b57d1/attachment.gz 


More information about the Mono-devel-list mailing list