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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T21:32:04+00:00 2026-05-28T21:32:04+00:00

I am doing a cross-domain fetch from a ASP.NET page using Jquery-JSONP My ASP.NET

  • 0

I am doing a cross-domain fetch from a ASP.NET page using Jquery-JSONP

My ASP.NET page looks like this;

    public partial class Test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Write("functionName({'test_param':12345});");
        }
    } 

This is hosted on my server as test.aspx

I am now using JQuery from localhost and trying to fetch the data from test.aspx like this;

            $.ajax({
                dataType: 'jsonp',
                url: 'http://abc.com/GTalk/test.aspx?callback=?',
                success: function () {
                    alert("Success");
                },
                error: function (x, y, z) {
                    alert("error" + x.responseText);
                }
            });

I am getting an error x.responseText = "undefined"
The error, z, is Error: jQuery171008073005825281143_1328259709467

I am not able to figure out what mistake I am doing. I am a newbie.

Thanks.

  • 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-28T21:32:05+00:00Added an answer on May 28, 2026 at 9:32 pm

    Instead of “functionName” on serverside you must print the function-name you receive via the GET-params as callback-parameter(jQuery171008073005825281143_1328259709467 in that case).

    You can’t hardcode the name, it differs on every request)

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

Sidebar

Related Questions

I'm trying to get a cross domain call to work using JSONP within JQuery.
I am doing a cross domain request using $.ajax . It works on Firefox
On this page: http://code.google.com/apis/accounts/docs/OAuth2UserAgent.html Google gives instructions for doing oauth with client side applications
How do I open 'cross-domain security', so the JavaScript on the page can freely
I am working on creating a RESTful API that supports cross-domain requests, JSON/JSONP support,
I am doing an ajax POST request with jQuery, and this works except I
As you know doing Cross Domain XMLHTTP requests is not allowed for security reasons
I was trying to hit a web service on a different domain using jQuery's
All, I'm trying to load a cross-domain policy file from a custom location (instead
I'm doing some fairly simple cross-platform TCP socket programming. I have unfortunately found out

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.