Create a UserControl.ascx File

  • Thread starter Thread starter Greg
  • Start date Start date
G

Greg

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
 
Back
Top