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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:09:29+00:00 2026-05-17T19:09:29+00:00

After spending many hours poking around trying to get an ASP .NET AJAX proxy

  • 0

After spending many hours poking around trying to get an ASP .NET AJAX proxy page, I’m pretty sure someone out there knows of an easier & simpler way.

These are two ways I have tried:

  1. Web services endpoint.

Problem: Super complicated, lots of work

  1. An OnLoad handler that sucks in a URL parameter and spits out the desired webpage (or JSON or XML).

Problem: The code is never called.

Secondary Problem: Setting up a proxy page should not require writing a bunch of code (aka, do we really need to keep reinventing an admittedly simple wheel?) and generating 2 different files (the ASPX and the code-behind)

What is the simplest way to make an ASP .NET AJAX proxy page?

Meta-note: I realize this treads a bit close to a discussion topic. Alas, I cannot flag this as a community wiki question. If you think it should be a wiki question, please mark it for me.

  • 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-17T19:09:30+00:00Added an answer on May 17, 2026 at 7:09 pm

    You can use a generic HTTP handler (ashx file). Quick example:

    <%@ WebHandler Language="C#" Class="Proxy" %>
    
    using System.Web;
    using System.Net;
    
    public class Proxy : IHttpHandler {
    
        public void ProcessRequest(HttpContext context) {
            context.Response.ContentType = "text/plain";
            using (WebClient client = new WebClient()) {
                context.Response.BinaryWrite(client.DownloadData(context.Request.QueryString["url"]));
            }
        }
    
        public bool IsReusable { get { return true; } }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get OpenGL and Glut running on Eclipse Linux FC13. After
I'm trying to get my Django based webapp into a working deployment configuration, and
It appears after much searching that there seems to be a common problem when
I started playing around with web2py the other day for a new project. I
I have a web application at work that is similar to a ticket working
I have problems sending using a Dll procedure with parameters, im not allowed to
  I am developing a project which is built in CakePHP and using jQuery in
I have two questions. First one is simple: Is there any way to control
I am developing logon function for my iPhone Application, so I want to hash
We have created an applet with javafx and it seems that in order to

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.