"Peter Duniho" <(E-Mail Removed)> skrev i meddelandet
news:(E-Mail Removed)...
> On 5/3/11 1:41 AM, Tony Johansson wrote:
>> Hello!
>>
>> This is a asp.net question that might somebody knows.
>>
>> If I set the AutoEventWireup="false" I must do the wiring between the
>> event
>> and the eventhandler myself.
>> So if I want to associate the Load event to a eventhandler that is called
>> Do_Load how to I do that in code ?
>
> It's just like events for any other C# code:
>
> objectWithEvent.Load += Do_Load.
I first put association in the global section but this will gave an error I
just use the c-tor.
this.Load += Do_Load;
//Tony
//Tony
|