Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6615073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:25:02+00:00 2026-05-25T20:25:02+00:00

I have a querystring parameter that populates another page and the problem happens when

  • 0

I have a querystring parameter that populates another page and the problem happens when the parameter starts with a hashtag #

Ex:
mysitepage/Details?param=#456

Of course this happens because hashtags in url ends the request. The problem is that these are ids from the database and cant be changed. Instead of using a querystring, is there any work around for this that someone can inform me of.

Edit1-

I realized I was encoding the whole url wheere the problem was. Now I am only doing the parameter part, but it seems to be making the parameter static instead of dynamic now:

example :

String.Format("mysite.com?param="+Server.UrlEncode({0}), Eval("param")) 

basically it encodes the 0 in curly braces and not the actual evaluated value

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:25:03+00:00Added an answer on May 25, 2026 at 8:25 pm

    You should checkout HttpUtility.UrlEncode(string)

    It will encode # to %23& and of course you can decode it back with UrlDecode()

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have web page which is passing a querystring parameter to page 2: <a
I have a question about the returnUrl querystring parameter that is appended by ASP.Net
i konw that you can have a period in a querystring parameter, but you
I have a page with radio buttons and a textarea that populates data dynamically
I have an index view that takes the page parameter like so: /News?page=2 But
I have a page request with a QueryString, say http://www.xyz.net/Orders.aspx?OrderID=1 . The page is
I am building an mvc app for reporting. I have a page that has
I have a Javascript page, that sends data to a PHP page. That data
I have the following DetailsView, with several BoundFields, and SQlDataSource that populates the fields:
I have a form that sometimes gets linked to with some query string parameters.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.