my custom check_changed

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,
i'm trying to build a custom handler for the 5 checkboxes i have on my web
form.
i noticed something i don't understand:

if i say in the code-behind:

protected void Check_Changed()

and then go back to the designer and then to the check changed event
properties for a checkbox and look in the dropdownlist my custom handler is
not there.

but if i add

protected void Check_Changed(object sender, EventArgs e)

it shows up in the list.
why is this?

thanks,
rodchar
 
rodchar said:
hey all,
i'm trying to build a custom handler for the 5 checkboxes i have on my web
form.
i noticed something i don't understand:

if i say in the code-behind:

protected void Check_Changed()

and then go back to the designer and then to the check changed event
properties for a checkbox and look in the dropdownlist my custom handler
is not there.

but if i add

protected void Check_Changed(object sender, EventArgs e)

it shows up in the list.
why is this?

Because your handler must match the signature required by the event, and the
designer is smart enough to only show methods where the signature is
correct.
 
Back
Top