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 293985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:19:32+00:00 2026-05-12T06:19:32+00:00

Env: .NET 1.1 I got into this situation. Where I need to give a

  • 0

Env: .NET 1.1

I got into this situation. Where I need to give a URL that someone could redirect them to our page. When they redirect they also need to tell us, what message I need to display on the page. Initially I thought of something like this.

  • http://example.com/a.aspx?reason=100
  • http://example.com/a.aspx?reason=101
  • …
  • http://example.com/a.aspx?reason=115

So when we get this url based on ‘reason’ we can display different message.

But the problem turns out to be that they can not send any query parameters at all. They want 15 difference URL’s since they can’t send query params. It doesn’t make any sense to me to created 15 pages just to display a message.

Any smart ideas,that have one URL and pass the ‘reason’ thru some means?

EDIT: Options I’m thinking based on Answers

Try HttpRequest.PathInfo

or Second option I was thinking was to have a httphanlder read

read the path like this – HttpContext.Request.Path

based on path act. Ofcourse I will have some 15 entries like this in web.config.

<add verb="*" path="reason1.ashx" type="WebApplication1.Class1, WebApplication1" />
<add verb="*" path="reason2.ashx" type="WebApplication1.Class1, WebApplication1" />

Does that look clean?

  • 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-12T06:19:33+00:00Added an answer on May 12, 2026 at 6:19 am

    Thoughts:

    • Path Info: http://msdn.microsoft.com/en-us/library/system.web.httprequest.pathinfo.aspx
      urls would be http://example.com/a.aspx/reason100, http://example.com/a.aspx/reason101, etc

    • URL Rewriting : http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
      urls would be http://example.com/a/reason/100.aspx, http://example.com/a/reason/100.aspx, etc.

    edit: both these approaches involve only one aspx page, but multiple urls pointing to it.

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

Sidebar

Related Questions

Is there a good Flex IDE/development env that works on Ubuntu? Where can this
To run a program with custom env settings, we do this on Linux $
in dirA/SConscript I have: Import('env') probeenv = env.Clone() probeenv['CXXFLAGS'] += ['-fno-rtti','-Wnon-virtual-dtor'] ... stuff that
We are developing an extension (in C# .NET env.) for a GIS application, which
My development env: Windows 7, TortoiseHg, ASP.NET 4.0/MVC3 Test branch: code on test server
I have a third party .NET Assembly and a large Java application. I need
I have a JNI code that is used to make calls to .Net APIs
I need to turn HTML into equivalent Markdown-structured text. OBS.: Quick and clear way
Env.: VS 2008, .NET 2.0, WinForms I have a listview in Tile mode. Some
Im trying to break the input and the processing into two parts so that

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.