Tom
|
| Posted: 01/09/2003, 1:18 AM |
|
how can i display the url of the current page in a grid?
It should look like: "The current url is : http://www.example.asp?item_id=1&"
I am using asp
|
|
|
 |
Nicole
|
| Posted: 01/10/2003, 6:12 AM |
|
Tom,
Here is sample ASP code:
if Request.ServerVariables("HTTPS") = "off" then
response.write "http://" & Request.ServerVariables("SERVER_NAME") & Request.ServerVariables("SCRIPT_NAME") &"?"& Request.ServerVariables("QUERY_STRING")
else
response.write "https://" & Request.ServerVariables("SERVER_NAME") & Request.ServerVariables("SCRIPT_NAME") &"?"& Request.ServerVariables("QUERY_STRING")
end if
instead printing the values you can assign them to the field.
|
|
|
 |
|