Is it possible to pass a Json by GET? [closed]

0

I would like to know if it is possible to pass a JSON to GET ? and if possible, I would like to know how?

    
asked by Alberto Atencio 29.06.2018 в 17:45
source

1 answer

1

It is with C #, but I have already verified that if possible, the specific case is the following: In JavaScript I have the following JSON

            var fecha = $("#fecha").val();
            var empresaId = $("#empresaId").val();
            var visitanteId = $("#visitanteId").val();
            var anfitrionId = $("#anfitrionId").val();
            var usuarioId = $("#usuarioId").val();
            var parametros = {
                "UsuarioId": usuarioId,
                "Fecha": fecha,
                "EmpresaId": empresaId,
                "AnfitrionId": anfitrionId,
                "VisitanteId": visitanteId
            }

Then I send it to a controller in this way:

location.href = "../Reportes/ReportTemplate?ReportName=ProgramacionVisitas&ReportParameters=" + parametros;
                                    
answered by 29.06.2018 в 18:04