473,406 Members | 2,894 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,406 software developers and data experts.

How to get full URL including #...

Hi. I'm trying to get the full URL of a page including # and what follows
it. An example URL would be:

http://www.mysite.com/page.aspx#contacts

I've tried:
Request.Url.AbsoluteUri
Request.ServerVariables("URL")
Request.RawUrl

But none of the above methods returns the "#contacts" portion of the URL.

Is it possible to get this last part of the URL?

Thank you,
Ben
Nov 18 '05 #1
2 1200
Ben Amada wrote:
Hi. I'm trying to get the full URL of a page including # and what
follows it. An example URL would be:

http://www.mysite.com/page.aspx#contacts

I've tried:
Request.Url.AbsoluteUri
Request.ServerVariables("URL")
Request.RawUrl

But none of the above methods returns the "#contacts" portion of the
URL.
Is it possible to get this last part of the URL?

Thank you,
Ben


It is possible that the browser omits that part when it sends a request
to the server. I've had some problems sending a URL with "#" to the
server: the # ended up as part of a parameter-value.

It *should* have only client-side functionality.

Hans Kesting
Nov 18 '05 #2
Hans Kesting wrote:
It is possible that the browser omits that part when it sends a request
to the server. I've had some problems sending a URL with "#" to the
server: the # ended up as part of a parameter-value.

It *should* have only client-side functionality.

Hans Kesting


Hi Hans,

That's too bad I can't retrieve the # portion of the URL on the server-side.
For my purposes, I think I can workaround this by using a query string
variable.

Thanks very much!
Ben
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Sims | last post by:
Hi, I have a few 'secure' area where the user needs to log-in b4 they can make view it. I know how to redirect them to the login page but how can I return them to the page they were? if I...
0
by: daking | last post by:
I'm trying to track down a Java performance issue, and believe it may be related to GC behavior. Quick background: j2se app server running Caucho Resin 2.1.12, on RHEL3 with Sun JDK 1.4.2_04,...
0
by: Gary N | last post by:
Sr. Database Administrator Permanent Position/Pittsburgh Pa $70-95K with full benefits Description A client of A.C.Coy's is looking for a Senior Database Administrator to join their team on a...
0
by: no spam | last post by:
Web Designer - Full Time Position- Toronto, Canada Our Client is looking for quality people. As a growing company, they prefer to hire people with good potential to grow into roles of greater...
8
by: Sean Shanny | last post by:
To all, The facts: PostgreSQL 7.4.0 running on BSD 5.1 on Dell 2650 with 4GB RAM, 5 SCSI drives in hardware RAID 0 configuration. Database size with indexes is currently 122GB. DB size...
2
by: Robert Treat | last post by:
We got a few of these on a 7.3 server this afternoon. The server was completed pegged on i/o activity (both physical disks, including the one the db doesn't live on) May 12 15:15:51 gnvdb01...
2
by: tvjraman | last post by:
I've spent two days on google trying to find a suitable solution for getting the full path of the running process but in vain. My question is very simple. I want to know the full path of the...
65
by: Hongyu | last post by:
Dear all: I am trying to write to a file with full directory name and file name specified (./outdir/mytestout.txt where . is the current directory) in C programming language and under Unix, but...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.