my custom check_changed

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
 
T

Tom Porterfield

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.
 

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

Top