2 custom webcontrols with postback problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alexander Widera

    2 custom webcontrols with postback problem

    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 webcustomcontro l.
    It doesn't use its "own" method.
    What could that be?

    thanks, alex


  • eguworks@gmail.com

    #2
    Re: 2 custom webcontrols with postback problem

    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
    CausesValidatio n="False"
    in any of the buttons you dont want to cause validation.

    Egu

    Comment

    Working...