Click here to Skip to main content
13,356,787 members (81,232 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i m using jquery ajax to get data from an back end method like this:

        cache: false,
        type: "POST",
        url: '<%= Page.ResolveUrl("~/Live/Live.aspx/GetViews") %>',
        content: "json",
        contentType: "application/json; charset=utf-8",
        data: "{ 'Altid' : '" + GetAltId() + "' }",
        success: function (msg) {
        fail: function (msg) {

and the back end method:

public static string GetViews(int Altid)
    return Live.count(Altid);

this call works fine locally, but on the remote service i get the page html as a response instead of the normal response which is the "d".

what is the problem, thanks.
Posted 23-Nov-12 4:09am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.180111.1 | Last Updated 23 Nov 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100