Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 25th, 2004, 03:38 PM
Authorized User
 
Join Date: Apr 2004
Location: Lahore, , Pakistan.
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default Complete URL of displaying page....

Hi:
    I am developing a site that have the option to SEND THIS PAGE TO FRIENDS. When user click on this button, the complete URL of the displaying page should be mail to his friends.


    So i require to get the full URL of the displaying page.
    Any idea or script?

Burhan

  #2 (permalink)  
Old April 27th, 2004, 01:16 AM
Friend of Wrox
Points: 422, Level: 7
Points: 422, Level: 7 Points: 422, Level: 7 Points: 422, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: La Jolla, CA, USA.
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Default

<%
response.write("http://" & request.servervariables("HTTP_HOST") & request("URL"))
' OR
response.write("http://" & request.servervariables("HTTP_HOST") & request.servervariables("SCRIPT_NAME"))
%>

  #3 (permalink)  
Old April 27th, 2004, 12:42 PM
Authorized User
 
Join Date: Apr 2004
Location: Lahore, , Pakistan.
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by U.N.C.L.E.
 <%
response.write("http://" & request.servervariables("HTTP_HOST") & request("URL"))
' OR
response.write("http://" & request.servervariables("HTTP_HOST") & request.servervariables("SCRIPT_NAME"))
%>

thanks U.N.C.L.E , i was needed complete url including query string values.

I overcome this by your help and adding QUERY_STRING variable.

Burhan

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying Web page dilipv General .NET 0 March 5th, 2008 05:39 AM
Page and URL Structure hugh@kmcnetwork.com ASP.NET 2.0 Professional 2 October 7th, 2007 07:56 AM
How to hide Extension of Page in URL ? savan_thakkar ASP.NET 1.0 and 1.1 Professional 9 February 24th, 2006 10:31 AM
Complete URL safin ASP.NET 2.0 Professional 0 February 2nd, 2006 02:36 PM
Displaying Url from database in Status Bar ntriqetev Classic ASP Basics 1 December 17th, 2003 09:40 AM



All times are GMT -4. The time now is 11:18 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.