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

  • SEARCH
  • Home
  • 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 6068975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:46:21+00:00 2026-05-23T09:46:21+00:00

I am currently working on ASP.net c# project. The URL might have spaces e.g.

  • 0

I am currently working on ASP.net c# project. The URL might have spaces e.g. may look like http://www.mydomain.com/my download/index.htm. I am replacing the spaces in the string so it looks like http://www.mydomain.com/my%25download/index.htm.

The email is sent from my ASP.net site without any problems but when I click on the link from inside the email, it displays an error, even though it isn’t accessing an ASP.net webpage. The error displayed is ‘A potentially dangerous Request.Path value was detected from the client (%).’

I don’t understand how it is displaying an ASP.net error when I am not accessing an ASP.net webpage. How can I get round this issue.

  • 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-23T09:46:22+00:00Added an answer on May 23, 2026 at 9:46 am

    A space is encoded as %20, not %25. %25 is the % character, so your sample URL is actually (after decoding) http://www.mydomain.com/my%download/index.htm. This is what ASP.NET is complaining about.

    If you’re encoding those URLs manually (string.Replace() or similar), you’d be better off using the UrlEncode method of the System.Web.HttpServerUtility class, accessible as the Server property of a page.

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

Sidebar

Related Questions

I am currently working on a C# project using ASP.NET. And I'd like to
I am currently working on an ASP.net c# project. I have an aspx page
I am currently working on a ASP.NET MVC 3 project in which I have
Currently I am working on an ASP.net webforms project where I would like to
I am currently working on an ASP.NET MVC3 project in Visual Studio. I have
I'm currently working on an C#/ASP.NET project that will host several differents e-commerce websites,
I'm currently working on a ASP.Net 3.5 project and trying to implement session timeout
The ASP.NET web app project I'm currently working on is getting slower over time
I have a site that I am currently working on in ASP.NET 2.0 using
I am currently working on an ASP.NET MVC2 project. This is the first time

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.