How to get full URL including #...

Discussion in 'ASP .Net' started by Ben Amada, Nov 11, 2004.

  1. Ben Amada

    Ben Amada Guest

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

    I've tried:

    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 Amada, Nov 11, 2004
    1. Advertisements

  2. Ben Amada

    Hans Kesting Guest

    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
    Hans Kesting, Nov 11, 2004
    1. Advertisements

  3. Ben Amada

    Ben Amada Guest

    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

    Thanks very much!
    Ben Amada, Nov 14, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.