Create a UserControl.ascx File

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top