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 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
  • 1 View
  • 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

After spending over 6 hours trying to do this and trying many different published
After spending a good 3 to 4 hours on google trying to find any
I'm trying to get into Java again after many years. Well, I'm making a
After spending about 6-8 hours trying to digest the Manacher's algorithm, I am ready
After many hours of messing about and trying to set up what should be
After spending quite a bit of time trying to design my way around the
After spending a miserable month with MySQL/.NET/EntityFramework, my findings: Support for Entity Framework is
I am looking into different ways to handle updating an ASP.NET application across many
After spending a few days of trying to find an answer online, I figured
After spending many years of analysis, design and programming in different domains and architectures,

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.