2 custom webcontrols with postback problem

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
 
E

eguworks

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top