Control Entry Point

G

Guest

Hi Everyone,

I am new to Server control development and I am wondering how do I define
the entry point for a server control? In a regular page you define Page_Load
as an entry point and in a windows application using C# you define the entry
point as void Main(){}. But in a Server control I think it is seperate then
writing the entry point as static void Main(){}
 
B

Brock Allen

There is no real entry point in a custom control. ASP.NET is event driven,
so most of the code written reacts to events such as button clicks, and well
defined events like Init, Load, etc. You can handle the Load event just like
the page can, though, in your control.
 

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

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top