2 custom webcontrols with postback problem

  • Thread starter Thread starter Alexander Widera
  • Start date Start date
A

Alexander Widera

hi,

i have 2 custom webcontrols on one page ... both have buttons (of the class
Button) on it with different Click or Command Events. But the problem is,
that a click on the button in the second control always causes a validation
and call of the postbackmethod of the first webcustomcontrol.
It doesn't use its "own" method.
What could that be?

thanks, alex
 
Hello Alex,

are you absolutely sure about having different names for each event?
Or maybe the two controls share the same event?
As for the 'causes a validation' part, you might want to try putting
CausesValidation="False"
in any of the buttons you dont want to cause validation.

Egu
 

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

Back
Top