CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 HELP with Labels Value

Print topic Send  topic

Author Message
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
View profile  Send private message
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")

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.