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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:20:37+00:00 2026-05-24T03:20:37+00:00

I have an IHttpHandler with the following ProcessRequest method: public void ProcessRequest(HttpContext context) {

  • 0

I have an IHttpHandler with the following ProcessRequest method:

public void ProcessRequest(HttpContext context) {
    int id = Convert.ToInt32(context.Request.QueryString["id"] + 151);
    var xml = XDocument.Parse("<xml><cartid>" + id + "</cartid></xml>");
    context.Response.Write(xml);
}

Which I’m trying to use from an aspx page as follows:

protected void Page_Load(object sender, EventArgs e) {
    order o = new order();
    Server.Transfer(o, false);
}

I get an HttpException: Error executing child request for handler ‘PostTest.order’.

If I instead try doing the transfer like:

Server.Transfer("~/order.ashx?id=65", false)

I get an HttpException: Error executing child request for /order.ashx.

Am I doing this wrong or is there another way to accomplish what I want?

  • 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-24T03:20:38+00:00Added an answer on May 24, 2026 at 3:20 am

    Just pass the context:

    var handler = new order();
    handler.ProcessRequest(Context);
    Response.End();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a method that implements IHttpHandler.ProcessRequest. It accepts an HttpContext parameter. This
I have the following httphandler: public class NewHandler : IHttpHandler { [Inject] public IFile
I'm recieving the following error message, A public action method 'RenderMenu' was not found
I have a handler, like this, using IRequiresSessionState: public class MyHandler : IHttpHandler, IRequiresSessionState
I have a custom handler like this, public class Handler : IHttpHandler { public
I have a IHttpHandler that acts as a source to a jQuery Autocomplete input
I have an aspx page that I want to convert to an HttpHandler ,
I have the following situation: Microsoft Report Viewer 2010 is used to display reports
I have an IHttpHandler that implements IRequiresSessionState. Everything works fine on most servers but
In one webapplication i have a IHttpHandler that when invoked starts an regular application

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.