Parameter in URL is coming null

0

I have a page that will call another as below.

if (hdfCdTipoStatus.Value == "2")
    Response.Redirect("/frmANACadastroBens.aspx?/CdProcesso=" +   RetornaProcessoUltimaAnalise(int.Parse(hdfCdUsuario.Value)), false);

It happens that in Load of page frmANACadastroBens.aspx I try to get the parameter passed by the calling page, like this:

if (Request["CdProcesso"] != null)
                    {
                        hdfCdProcesso.Value = Request["CdProcesso"];
                    }

What happens to the moment I pass the parameter on the calling page, the parameter is not null and the page called is. How do I get this parameter at the time the page is being loaded.

    
asked by anonymous 23.01.2015 / 17:51

1 answer

2

Mount the url of redirect this way

if (hdfCdTipoStatus.Value == "2")
    Response.Redirect("/frmANACadastroBens.aspx?CdProcesso=" +   RetornaProcessoUltimaAnalise(int.Parse(hdfCdUsuario.Value)), false);
    
23.01.2015 / 18:10