Users Pricing

forum

home / developersection / forums / page method is returning content of whole page

Page method is returning content of whole page

Anonymous User 2072 16 Jan 2015

My page method is returning whole page insted of result from the server side. In my local environment it is working fine but when I deploy it to azure I am getting this problem.

My code is:

function LoadLogsOnSucceeded(result) {
    document.getElementById('divHistoryHeader').innerHTML = result.Header;
    document.getElementById("divHistoryList").innerHTML = result.List;

function LoadLogs() {
    var searchTxt = $("#txtLogsearch").val();
    var maxRecords = $('select[id=drplogSearchMaxRecords]').val(); 
    PageMethods.LoadLogs(searchTxt, maxRecords, LoadLogsOnSucceeded, OnFailed);
}

In config I have not added

<httpModules>

  <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</httpModules>

when I add that into my config then in local also project is not working getting error like

"The page cannot be displayed because an internal server error has occurred."


I am a content writter !


1 Answers