473,769 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server method failed if more no of records

4 New Member
I m calling webmethod (BindEPASCode) in aspx.cs page through Pagemethods in javascript. I am returning BindEPASCode as string if the return below 2500, it is populating properly, if it takes more 2700 i m getting 'Server method Bind State failed' error.

Below is my code...

function callwebmethodTo pic()
{
var topic = document.getEle mentById(GetJSP roperty('ddlTop ic')).value;
PageMethods.Bin dEPASCode(topic , OnSucceededEpas Code, OnFailedEpasCod e);
}
function OnSucceededEpas Code(result) {
var splitEpas = result.split('# ');
var tableRef = document.getEle mentById(GetJSP roperty('rblEpa s'));
if (tableRef != null) {
var chkboxlst = tableRef.getEle mentsByTagName( "input");
for (i = 0; i < chkboxlst.lengt h; i++) {
chkboxlst[i].parentNode.par entNode.parentN ode.removeChild (chkboxlst[i].parentNode.par entNode);
}
for (summaryindex = 0; summaryindex <= splitEpas.lengt h - 2; summaryindex++) {
var arrChild = splitEpas[summaryindex].split('|');
var tableRow = tableRef.insert Row();
var tableCell = tableRow.insert Cell();
var checkBoxRef = document.create Element('input' );
var labelRef = document.create Element('label' );
checkBoxRef.typ e = 'radio';
checkBoxRef.val ue = arrChild[0];
labelRef.innerH TML = arrChild[1];
tableCell.appen dChild(checkBox Ref);
tableCell.appen dChild(labelRef );
}
}
}
function OnFailedEpasCod e(error) {
alert(error.get _message());
}

-------
Webmethod -- aspx.cs
[WebMethod]
public static string BindEPASCode(in t topicId)
{
List<ListEntity > lstEpasCode = GeneralManager. GetEpasCode(top icId);
StringBuilder sbEpasCode = new StringBuilder() ;

lstEpasCode.For Each(delegate(L istEntity objEpasCode)
{
sbEpasCode.Appe nd(objEpasCode. Key + "|" + objEpasCode.Val ue + "#");
});

return sbEpasCode.ToSt ring();
}
Sep 24 '10 #1
0 931

Sign in to post your reply or Sign up for a free account.

Similar topics

1
5284
by: Jim | last post by:
Any idea what is causing this error? 006~ASP 0230~Server.Transfer Error~The call to Server.Transfer failed while loading the page. Just read about benefits of Server.Transfer over Response.Redirect, replaced, and getting the error. Suggestions?
0
1406
by: Anurag Saxena | last post by:
If someone can solve this problem,I am using ASP3.0 and IIS on windows 2000 server The complete Error is '''''''''''''''''''''''''''''''''' Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed /onesource_local/defects.asp, line 41
5
4446
by: tilak.negi | last post by:
We have one single hash (#) table, in which we insert data processing priority wise (after calculating priority). for. e.g. Company Product Priority Prod. Qty Prod_Plan_Date C1 P1 1 100 C1 P2 2 50 C1 P3 3 30 C2 P1 1 200 C2 P4 2 40
15
2734
by: Hi5 | last post by:
Hi, I am designing a database for a client in which It has a client table including the followings: 1-Table Client 2-Table lookupcategory 3-Table Ctegory
3
3322
by: Bill Davidson | last post by:
All: I recently upgraded a VC++6 COM Server Exe project to VC++7.1 (w/ the latest PSDK). After a couple of minor hurdles, I got the project to compile and self-register. Unfortunately, when I tried to call into the server from either a VB6 or a VC6 test client, an error occurs at object creation time. Looking at Task Manager, the server .Exe never actually launches.
2
7338
by: Ravi J | last post by:
I am trying to load Microsoft Word and create a document in ASP.NET (C#). But the call to application creation 'Word._Application app = new Word.ApplicationClass();' takes quit a bit of time, and eventually "Server Execution Failed" page appears. "Exception Details: System.Runtime.InteropServices.COMException: Server execution failed ... " The same call inside a WIndows Form succeeds. But for some reason, in ASP.NET it doesn't. Quick...
2
4683
by: Bassel Tabbara | last post by:
I wrote the following code: oApp = new Outlook.Application(); oApp = new Outlook.Application(); oNameSpace= oApp.GetNamespace("MAPI"); oNameSpace.Logon(null,null,true,true); //gets defaultfolder for my Outlook Outbox oOutboxFolder = oNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderOutbox); But it won't work and it is giving me the following error:
2
2883
by: javelin | last post by:
I'm studying "Visual Basic Developer's Guid to ASP & IIS", and I am following instructions an pp 72-75. I am creating a WebClass, and enter code as instructed, and it all is entered correctly. When I try and run, I get the folowing error: "The call to Server.CreateObject failed while checking permissions. Access is denied to this object." I've not compiled this, but am following instructions to just run the
3
2619
by: whelme | last post by:
Hi, i am trying to make a comments page for a website but when i upload it to a free hosting account and try to test the page i keep getting Server.CreateObject Failed is this problem because the servers don't support the command or because i have coded it wrong here is my code: <%
1
6364
by: eusebiu | last post by:
Hello... Let's say we have a time consuming function, aaa inside a aspx page. public static string aaa(int i) { Thread.Sleep(1000); return i.ToString(); }
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10212
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.