1
I need to get a return from an ajax that I send.
The URL returns something like: http://localhost:11910/ProtocoloExterno/Inserir?itensContrato%5B0%5D%5Bid%5D=1&itensContrato%5B0%5D%5BvalorUsado%5D=15110%2C10&itensContrato%5B1%5D%5Bid%5D=2&itensContrato%5B1%5D%5BvalorUsado%5D=111%2C00&contrato=4100001060&codigoParceiro=7900321&nomeParceiro=MTN%20AFGHANISTAN&areaReclamacao=&codigoPatrimonial=4000014000&operadora=Fixo&statusObra=bis&nFRN=1011000510&endereco=Rua%20Ursulina%20de%20Melo&estado=AL&cidade=1651&descItem=Descricao%20de%20teste&icms=1&ipi=10&contaContabil=Capital%20n%C3%A3o%20chamado&ordemInterna=15101000&quantidade=10&valorUnitario=15221%2C10&valorTotal=15221%2C10&numeroPedido=100040&itemPedido=10&observacao=
When I put the Request.QueryString["valorTotal"]
for example, it works perfectly, if I put Request.QueryString["itensContrato[0][id]"]
and Request.QueryString["itensContrato[0][valorUsado]"]
also works perfectly, except that this itensContract can a as may have 15, wanted some way to scroll through the url checking these values idently the amount of items you have.
Thanks in advance
you really intend to pass all this content by GET???
– Leandro Angelo
yes, I need to pass via get
– gabrielfalieri
what is the version of . net? Mvc standard or Webapi?
– Leandro Angelo
I’m using the 4.6.1
– gabrielfalieri
Another thing, what if I pass via post?
– gabrielfalieri
@Leandroangelo e ae?
– gabrielfalieri
Possible duplicate of Difficulty in picking up a certain type of return in c#
– rodrigogq