[Mono-dev] [PATCH] ASP.NET 2.0 event validation support

Marek Habersack grendel at caudium.net
Sun Nov 19 11:00:29 EST 2006

On Sun, 19 Nov 2006 01:54:07 -0800, "Igor Zalmanovich "
<igorz at mainsoft.com> scribbled:

> Marek,
Hey Igor,

> See Control class for stateMask field,
> It also tracks life cycle state.
> I think there is a place for a refactoring.
I think they are two different things. PageLifeCycle tracks the events
along the page life, as described in
http://msdn2.microsoft.com/en-us/library/ms178472.aspx, where each
stage in the life cycle is a unique and single value, while stateMask
is a bitmap of states a control can be in. I think they should be kept
separate, as there is no real waste of time/space with setting both of
those separately and it is cleaner to keep the two states separate.
Especially that the control stateMask applies to all controls,
including the page, while the page life cycle applies only to the page
itself - there is no need to contaminate other controls with the life
cycle knowledge. If they need to get the page cycle, they can ask for
it by looking at their parent page control.

best regards,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061119/6442df70/attachment.bin 

More information about the Mono-devel-list mailing list