custom control: strange event problem

D

dan

Hi NG,

i have have a strange problem with a Click Event in a custom control.
The OnClick method assigned to a Link Button gets invoked, but the method
called in that method is ignored. Instead, the debugger directly invokes
CreateChildNodes().

void SubmitButton_Click(object sender, EventArgs e) <---- Is Invoked

{

methodX(); <---- IGNORED

}


Is that a Custom Control bug?
Any ideas?

Dan
 
R

Rob Schieber

dan said:
Hi NG,

i have have a strange problem with a Click Event in a custom control.
The OnClick method assigned to a Link Button gets invoked, but the method
called in that method is ignored. Instead, the debugger directly invokes
CreateChildNodes().

void SubmitButton_Click(object sender, EventArgs e) <---- Is Invoked

{

methodX(); <---- IGNORED

}


Is that a Custom Control bug?
Any ideas?

Dan

A shot in the dark but are you in a try catch somewhere?
 

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