. I observed that the override method DataPortal_OnDataPortalInvokeComplete is firing two times Why this is firing two times.
cancer tissue |
Because one time on Client side and the other on server side. Try to implement a condition like below to figure it out.
if (ApplicationContext.ExecutionLocation == ApplicationContext.ExecutionLocations.Server)
{
// Some code here...
}
else if (ApplicationContext.ExecutionLocation == ApplicationContext.ExecutionLocations.Client)
{
// Some code here...
}
Copyright (c) Marimer LLC