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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:31:07+00:00 2026-05-15T12:31:07+00:00

I want to write a custom HTTP Handler in ASP.Net (I’m using C# currently)

  • 0

I want to write a custom HTTP Handler in ASP.Net (I’m using C# currently) that filters all requests to, say, .aspx files, and then, depending on the page name that comes with the requests, I redirect the user to a page.

So far, I’ve written a handler that filter “*”, that is, everything. Let’s say I receive a request for “Page.aspx”, and want to send the user to “AnotherPage.aspx”. So I call Redirect on that response and pass “AnotherPage.aspx” as the new page. The problem is that this will once more trigger my handler, which will do nothing. This will leave the user without any response.

So, is there a way to send the request to the other handlers (cascade the message) once I’ve dealt with it?

Thanks,
Bruno

  • 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-15T12:31:07+00:00Added an answer on May 15, 2026 at 12:31 pm

    Since Mark hasn’t provided a full anwer containing the advice on MVC, here it goes what I learned:

    ASP.Net MVC can do that. In fact, ASP.Net MVC was designed for that purpose: with MVC you can map different sub-links in your website to the same Controller, which will then process the request and send a view (page) back to the user. This technique is called Url Routing and is explained in ScottGu’s blog quite well.

    Scott’s also have other articles describing MVC, which are worth checking out.

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

Sidebar

Related Questions

I want to write a custom control that's used like this: <HorizontalTick>Some string</HorizontalTick> It
I am currently converting a very old, but working classic ASP site to ASP.Net.
I'm trying to write a custom validation for my store.website . I want the
I want to write a gem that, once bundled to a Rails 3.1 Gemfile,
I want to write a custom Constraint to use it in my Form for
I want to write unit tests with NUnit that hit the database. I'd like
So I'm creating a custom ActionFilter that's based mostly on this project http://www.codeproject.com/KB/aspnet/aspnet_mvc_restapi.aspx .
I am developing a custom HttpHandler, to do so I write a C# Class
Trying to write a game such that most of the screen gets filled with
Since the very begining of writing ASP.NET applications when I wanted to add a

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.