473,396 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Display complete URL in cluding parameters

Hi, i am trying to pass a URL for a send-to-friend script. I am having trouble getting the complete URL including: http or https, full link (eg: www.server.com/xxx/xxx, and qury parameter. any help would be appreciated.

Thanks,
Leon
May 1 '09 #1
3 5871
liz0001
26
This will give you the current URL -

CurrentURL = Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("HTTP_URL")

See http://msdn.microsoft.com/en-us/library/ms524602.aspx for a list of parameters you can use.
May 6 '09 #2
jhardman
3,406 Expert 2GB
@darnnnel
do you need to do it programmatically, or can you hard-code some of it? Is there anything else you can tell us about the problem?

Jared
May 6 '09 #3
Hi, thank you all for the quick replies. As mentioned above: CurrentURL = Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("HTTP_URL") works great, the only thing that i am missing is the HTTP:// or HTTPS:// portion of the URL. Is there a way to get that?
May 6 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

23
by: news.hku.hk | last post by:
suppose i have: int price1 = 35000; int price2 = 600; int price3 = 8765; int price4 = 120000; int price5 = 3800000; and i want to output to screen the following:
0
by: munif | last post by:
i wnat write a C++ program that would read from a CD and display information about files and folders in the given CD In simple words you would be performing a simple (ls -l) or (DIR /S) on the...
1
by: Adam | last post by:
I am having difficulty retrieving images from a SQL database. Here is the code I use to UPLOAD the image to the database: <form id="Form1" method="post" enctype="multipart/form-data"...
5
by: Peter Lapic | last post by:
I have to create a image web service that when it receives an imageid parameter it will return a gif image from a file that has been stored on the server. The client will be an asp.net web page...
2
by: deko | last post by:
I have a popup form that has Start and Stop buttons to initiate a search for email messages. If the user's Inbox has thousands of messages, the Stop button will gracefully end the search without...
3
by: den 2005 | last post by:
Hi everyone, Here is code working on..Trying to insert record with a column with Image or VarBinary datatype in sql database from a existing jpeg image file, then retrieve this image from...
10
by: Jeff | last post by:
I'm still new to vb.net and even newer to using stored procedures in mysql. The called procedure will return a single row from the DB. I'm not sure how to get that value into a DataTable. I think I...
0
by: gggram2000 | last post by:
Hi there, I'm using microsoft visual studio 2005, with c# code. I recently downloaded GemBox which is a spreadsheet for excel. I can pass parameters through textboxes, comboboxes, labels...etc...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.