I would like to know if it is possible to pass a JSON to GET ? and if possible, I would like to know how?
I would like to know if it is possible to pass a JSON to GET ? and if possible, I would like to know how?
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;