hello everyone
I have an ASP.NET page with VB, which receives several parameters in the QueryString from an Android application to perform some calculations, for example:
http://192.168.100.0:8080/pagina.aspx?med=120
In the code behind the page:
Dim strMedida As String = Request.QueryString("med")
And if I print the value of strMeasure, it shows me the value passed in the request:
Context.Response.Write("La medida es: " & strMedida)
The measure is: 120
But when evaluating the variable with an IF, a SELECT CASE, etc., to do some operation, it doesn't do it. Example:
Dim strRes as String
Select Case strMedida
Case "100"
strRes = "La medida es Sencilla"
Case "120"
strRes = "La medida es Semi"
Case "140"
strRes = "La medida es Doble"
Case Else
strRes = "No hay medida"
End Select
And if I print the value of strRes, it shows me as if strMeasure had no information. The same happens if I evaluate with Request.QueryString("med"):
Context.Response.Write(strRes)
No hay medida
Thank you very much for your help
What I have tried:
I have tried creating each parameter of the QueryString as a Class, a Function that returns the value directly and I have not succeeded.
Thank you very much for your help