I guess this should work
http://odetocode.com/Articles/94.aspx
Regards,
Trevor Benedict
"Greg" <(E-Mail Removed)> wrote in message
news:E5E69CA2-3F3F-4F92-A3FE-(E-Mail Removed)...
> I've been developing in C# ASP.NET for about 18 months now and am always
> looking to expand my skills. Right now I'm looking into using my own User
> Controls. I know how I can create one and add it a web page, but where I'm
> having difficutly is Events, such as a Button_Click() event.
>
> I've had luck with the properties and being able to set values in my the
> User Controls, but from the samples I've been finding on the web I haven't
> really come across one that explains how I can fire a Button Event (with
> my
> own logic) from my Hosting Page.
>
> Can anyone explain how I can call a btnButton_Click() event from my
> hosting
> page?
>
> Thanks in advance.
>
> Greg