Get and set the URL of an HttpClient control at runtime


Yang Ghua

I have a HttpClient Control name:"HttpClient3",and Set the "Url":'testurl'

if run

and it will show "undefined "

if run

it will show "HttpClient3.Url"

therefore if

seem would not set the "HttpClient3.Url" property

??was I missing something???


DecSoft

Hello Joshua,

As you can see in the HttpClient control reference, the "Url" variable is a "designtime" variable, convenient to set the URL during designtime. In runtime you can access the URL using the control "HttpClient.Request.url" variable.

On the other hand, remember we have also the HttpSetUrl action in order to set the URL of the HttpClient control, in addition to use the refered control "HttpClient.Request.url" variable.

Hope this information can be useful for you.



Yang Ghua

sorry,I did not carefully read the manual


DecSoft

Hello,

sorry,I did not carefully read the manual

No problem! This time... :D


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.