webmethods

How to update an datagrid with webmethods

Hi guys, I choose the method to update my data every second with a javascript PageMethod and WebMethod. With much returns via an object I can set hunderts of labels if it is naeccasery. The time for 2 completedatabase-querys is unter 200 Milliseconds and the Post-Weight is wunderfull low! But how I can databind my gridview in a web...

Access to QueryString / Session from a static Method?

Hi guys, I use ASP.Net and a static WebMethod / PageMethod to do some async work. My question is how to access my queryStrings and Session variables here? I tried "HttpContext.Current" and a lot of information is available here, but not my QueryString nor my Session and I don't know why. [WebMethod(EnableSession=true)] public sta...

Calling one WCF service from another... or am I?!

I'm trying to make a call to a remote WCF service from within an existing service. I've added a Service Reference to the method I need to consume in the remote service, and use it as follows in this WebMethod of my own service: [WebMethod(Description = "My local service."] public RemoteService.ServiceResponse ServiceRequest(RemoteS...

PageMethods exception details

I have quite a big project and it is all done using pagemethods. Code behind is basically just to serve and handle the data. Everything works perfect, except for one thing - I recently created a custom exception class that I want to use for more user friendly reports and even possible actions. For this purpose, I inherited the exception ...

How to build widget page using jquery, json object, and xml file in ASP.NET

Hi, I am trying to build a page which consists of different user controls which is divided in 3 columns. I have created a custom class for the page and widgets where the user controls will be loaded in. The custom class needs to be stored in an XML file, and using jQuery sortable for drag-and-drop functionality. At this point, my ques...

How do I pass optional parameters into a WebMethod via JSON?

I have the following JSON class I am intending to use to perform management calls on my database asynchronously: <script type="text/javascript"> var CalendarManager = { defaultOptions: { staffcode: 0, // required date: 0, // required activityCode: 0, // required ...

i want to send 20000 messages from JMeter to JMS Queue through web methods and get/capture responses of all requests

Blockquote Hi i'm trying to post JMS messages to JMS queue through web methods,JNDI. i want to post 20000 messages using one connection. i want to read the responses back once returned by wMethods. i want to capture the request & response for all 20000 messages i'm using JMeter is there any other opensource, easily usable tool av...

Simple AJAX not working

Hey, I have this AJAX code, but it doesn't seem to throw the 'alert' method. Instead, nothing happens. I looked at it with Fiddler and got this error message: {"Message":"There was an error processing the request.","StackTrace":"","ExceptionType":""} I'm trying to call a web method in the code-behind called MyWebMethod: $.ajax({ t...

How to get the instance name of an object

I use the below code to write code to query a web method in a specified interval. now in the this.Poll function I have to do this.tmo = setTimeout(this.strInstanceName + ".Poll()", this.iInterval); instead of this.tmo = setTimeout(this.Poll(), this.iInterval); because IE looses the this pointer after setTimeout So I have to pass...

WebMethod Return xml

I keep reading how everyone states to return XmlDocument when you want to return XML. Is there a way to return raw XML as a string? I have used many web services (written by others) that return string and the string contains XML. If you return XmlDocument how is that method consumed by users that are not on .Net? What is the method to j...

Does webMethods CAF have .Net capabilities?

In a scenario where Software AG's webMethods Composite Application Framework (CAF) experienced developers are hard to find, compared to .Net, this question comes into play: does webMethods CAF have .Net integration capabilities? ...

string extension method - Not available through WebMethod

I've written a simple extension method for a web project, it sits in a class file called StringExtensions.cs which contains the following code: using System; using System.Collections.Generic; using System.Linq; using System.Web; /// <summary> /// Useful extensions for string /// </summary> static class StringExtensions { /// <summa...

Alternatives to UpdatePanel on a user control (ASCX page)

I am currently working on a ASP.NET AJAX application. Having decided to not use UpdatePanels for evident reasons, what alternatives to I have? This application has pages built dynamically and so most or all the components of the page exist as User Controls. I need to make AJAX calls from ASCX user control page. And as ASCX user control...

calling a method in one application from another application

how to call a webmethod in one application from another application,both developed in c#? ...

Passing jQuery object and WebMethod return value to an OnSuccess function

I am calling a WebMethod from this code: if($(this).attr("checked")) { .. MyWebMethod(variable1, variable2, onSuccessFunction); } The MyWebMethod returns an integer, and I want to set $(this).attr("id") of the jQuery object above to the returned integer. Basically, I'm trying to do the equivalent of an MVC Ajax.ActionLink...Ajax...

JQuery ajax call to httpget webmethod (c#) not working

I am trying to get an ajax get to a webmethod in code behind. The problem is I keep getting the error "parserror" from the JQuery onfail method. If I change the GET to a POST everything works fine. Please see my code below. Ajax Call <script type="text/javascript"> var id = "li1234"; function AjaxGet() { ...

JSON - msg.d is undefined error

Hi - Webmethod returns an array of objects - something like this {"d": [[{"Amount":100,"Name":"StackOverflow"}, {"Amount":200,"Name":"Badges"}, {"Amount":300,"Name":"Questions"}]]} On the client-side, when the JSON is referenced using msg.d, I get a msg.d is undefined error. I am using jQuery JavaScript Library v1.4.2 How do I a...

JQuery, ASCX and webmethods not seems to be working

Hi all, I have a cascading dropdown (3 of them) Type, Categories and Sub Categories. Type loads first and upon selection of Type, Category load and selection of Category, Sub Category loads. Also i have 2 buttons, "Add Category" and "Add Sub Category" Upon clicking on these buttons, i call a JQuery Modal Form to add them. I use Webmetho...

Use python decorators on class methods and subclass methods

Goal: Make it possible to decorate class methods. When a class method gets decorated, it gets stored in a dictionary so that other class methods can reference it by a string name. Motivation: I want to implement the equivalent of ASP.Net's WebMethods. I am building this on top of google app engine, but that does not affect the point...

WebMethods not sending ACK/FINISH to IIS Web Services calls

We've reproduced this one in Test, so I feel good about asking this question - not that I understand it or anything. ;-) WebMethods is connecting to an IIS Web Service (I'm the IIS guy, and the WebMethods guy has no answer for me.) IIS is throwing 200 0 1236 errors on most of the calls, though. The cause of that is Timer_MinFileBytesPer...