come posso in asp ottenere l'url della pagina corrente, per esempio nella barra degli indirizzi del browser visualizzo http://forum.html.it/forum/newthread...tion=newthread ecc...
vorrei recuperare questa stringa. HOW?
come posso in asp ottenere l'url della pagina corrente, per esempio nella barra degli indirizzi del browser visualizzo http://forum.html.it/forum/newthread...tion=newthread ecc...
vorrei recuperare questa stringa. HOW?
penso Request.QueryString() sia sufficiente
Dato
codice:http://forum.html.it/forum/newreply.php?s=&action=newreply&threadid=740806ritornacodice:Request.ServerVariables("URL")
forum/newreply.php
ritornacodice:Request.ServerVariables("REMOTE_HOST")
http://forum.html.it/
ritornacodice:Request.ServerVariables("QUERY_STRING")
s=&action=newreply&threadid=740806
codice:sito = Request.ServerVariables("HTTP_HOST") pagina = Request.ServerVariables("SCRIPT_NAME") querystring = Request.QueryString URL = "http://" & sito URL = url & pagina if len(querystring) > 0 then URL = URL & "?" & querystring end if![]()
![]()