Line of code doesnt follow sequential execution

Posted by ryudice on Stack Overflow See other posts from Stack Overflow or by ryudice
Published on 2010-04-22T21:51:56Z Indexed on 2010/04/22 21:53 UTC
Read the original article Hit count: 331

Filed under:
|
|

Hi, I'm having a problem with a code that doesnt follow sequential execution although I'm not using threading. My code calls one function and when I'm debugging inside the function, it returns to the line of code following the function call although the function hasnt finished executing, I have no idea why this would happen, any ideas? thanks in advance.

   workflow.SaveControlTiempo(solEntity, traId, Usuario.GetUsrId());// this is my function
            RadAjaxManager.GetCurrent(Page).RadAlert("Solicitud Transicionada con \u00c9xito"); // code execution continues here even if the function hasnt finished and since the function hasnt finished I get an exception
            var javascripFunction = "CloseWindow('Solicitud <b>{0}</b><br />Transicionada con \u00c9xito.<li> <b>Etapa Destino: </b>{1}<li><b>Usuario: </b>{2}');";
            javascripFunction = string.Format(javascripFunction, solEntity.SOL_CODIGO, solEntity.WKF_ETP_ETAPAS.ETP_DES, 
                DNNUtil.GetInstance().GetUserName(solEntity.USR_ID));

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET