Why cant I fire more than 1 event?

Why cant I fire more than 1 event?

Old forum URL: forums.lhotka.net/forums/t/8982.aspx


ambreshgaur posted on Monday, May 24, 2010

What if i want to fire 2 different events on same object?

Syntax error ...........TriggerEvent is set more than once ..on the following.

 

 

 

 

 

 

<

 

CheckBox csla:InvokeMethod.TriggerEvent ="Checked" csla:InvokeMethod.MethodName="InitializeReceivedQty" csla:InvokeMethod.Target="{Binding Source={StaticResource pOReceivedVM}}"

 

 

csla:InvokeMethod.TriggerEvent ="UnChecked" csla:InvokeMethod.MethodName="InitializeReceivedQty" csla:InvokeMethod.Target="{Binding Source={StaticResource pOReceivedVM}}"/>

Ambresh

triplea replied on Tuesday, May 25, 2010

You can't do that. That's why TriggerAction was created. You might need to upgrade your CSLA version (3.8.3 and 4) but it is the recommended way forward.

Copyright (c) Marimer LLC