Hello,
I am not sure if this is possible, but it's a simple
enough situation that it seems as though it would be.
I have a page main.aspx with a couple user controls
in it Control1.ascx and Control2.ascx. I am attempting
to figure out how to hook up an event handler of some
sort in the user controls so that when the page is
submitted, I could handle it. When I developed a custom
server control I did this through implementing
IPostBackEventHandler and IPostBackDataHandler, but I
don't know how to do this in a user control. I tried
implementing the two interfaces in a user cotnrol, but
they didn't work. Thanks for your help!
Teemu Keiski - 31 Jul 2003 14:29 GMT
Well, generally thinking you could expose a public event on the Page that
the user controls then specify handlers for it (that is called when Page
raises the event). But what kind of event it is about? What you have tried
for now? Please provide bit more details.

Signature
Teemu Keiski
MCP, Designer/Developer
Mansoft tietotekniikka Oy
http://www.mansoft.fi
AspInsiders Member, www.aspinsiders.com
ASP.NET Forums Moderator, www.asp.net
AspAlliance Columnist, www.aspalliance.com
> Hello,
>
[quoted text clipped - 11 lines]
> implementing the two interfaces in a user cotnrol, but
> they didn't work. Thanks for your help!