Joe
|
Posted: 04/30/2004, 9:31 AM |
|
I am using this currnet code to return current page URL, how can i asign a labels value to read the current URL
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
Thanks
|
|
|
peterr
Posts: 5971
|
Posted: 04/30/2004, 11:42 AM |
|
Whatever you display with response.write, you can display within labels by using the syntax LabelName.Value =... ; or if the Label is placed within a form then FormName.LabelName.Value =
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
Joe
|
Posted: 04/30/2004, 11:45 AM |
|
Peterr,
Thanks,
i put the following code into the labels default value and it worked
Request.ServerVariables("HTTP_Referer")
|
|
|
|