Calling a page with Redirect is giving error

Asked

Viewed 63 times

0

That’s the mistake you’re making:

Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.

And that’s the full call code on my master.

protected void lkbConsultarProcessos_Click(object sender, EventArgs e)
        { 
            try
            { 
                Response.Redirect("/frmPVListaProcessos.aspx");
            }
            catch (Exception Ex)
            {
                wucMasterMensagens.ExibirMensagem(WUC.wucMensagens.TipoAlerta.Erro, Ex.Source, Ex.Message, Ex.StackTrace);
            }
        }

1 answer

1


Request.Redirect(url, false);

Use false in endResponse parameter!

  • The error gave no more, but the requested page is not loaded. This I will see what is happening.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.