G
Guest
I've been building some custom controls which have some special functionality
with the data I use from a web service, specifically the ability to data bind
to attributes (without an accessor method).
However I've come accross an interesting issue with using them. I have
reimplemented the class from
public class WCCombobox : Control, IPostBackDataHandler
so that I can load the post data back in. It works great, it gets to the
method and loads it in from the post back namevaluecollection. however when
the same control is put on a usercontrol, which is put on the page, rather
than put directly on the page, the loadPostData event doesnt actually get
called.
It works fine directly on the page. It doesnt work on the user control. I've
put 2 controls on the same page, one in a usercontrol, the other directly on
the page, and as I said, the one in the usercontrol doesnt work. The one
directly on the page does.
Has anybody come accross this before? Does anybody have any sugestions on
what I might not be doing to fix this?
with the data I use from a web service, specifically the ability to data bind
to attributes (without an accessor method).
However I've come accross an interesting issue with using them. I have
reimplemented the class from
public class WCCombobox : Control, IPostBackDataHandler
so that I can load the post data back in. It works great, it gets to the
method and loads it in from the post back namevaluecollection. however when
the same control is put on a usercontrol, which is put on the page, rather
than put directly on the page, the loadPostData event doesnt actually get
called.
It works fine directly on the page. It doesnt work on the user control. I've
put 2 controls on the same page, one in a usercontrol, the other directly on
the page, and as I said, the one in the usercontrol doesnt work. The one
directly on the page does.
Has anybody come accross this before? Does anybody have any sugestions on
what I might not be doing to fix this?