[Mono-bugs] [Bug 557223] System.InvalidCastException after second postback on a customize control.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 30 14:36:38 EST 2009


http://bugzilla.novell.com/show_bug.cgi?id=557223

http://bugzilla.novell.com/show_bug.cgi?id=557223#c3


--- Comment #3 from Marek Habersack <mhabersack at novell.com> 2009-11-30 20:36:34 CET ---
Created an attachment (id=330096)
 --> (http://bugzilla.novell.com/attachment.cgi?id=330096)
testmono.tar.gz

What you need to do is to make sure that your controls are recreated before
page state is restored - that gives you an option of using the PreInit, Init,
InitComplete event handlers together, in your case, with overriding the
CreatingControlHierarchy method in myDataGrid. I attached your sample updated
with the above changes.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list