Hi colleagues,
how are the page events handled in C#? In VB you have the handles
keyword. and in C# all the params (object and EventArgs ) are the same
for 3 eventhandlers below.
a- How does the framework know which one is page_load, and which one
is PreRender?
Is it because of the name?
b- If I would like to add these events in C# code behind, what is the
trick. I just copy and paste it. In VB you can select from
dropdownlistboxes?
thanks for any advice,
cheers,
mesut
(1)
protected void Page_PreRender(object sender, EventArgs e)
//--------------------------------------------------------------------------
{
do somethig
}
(2)
//--------------------------------------------------------------------------
protected void Page_Load(object sender, EventArgs e)
{
do something
}
(3)
protected void Page_Init(object sender, EventArgs e)
{
}