Questions tagged as 'webmethods'

2
answers

WebMethod is not called (triggered) through PageMethod

I'm not able to fire a WebMethod on a project created in Visual Studio 2013 (WebForms Application). If I create a project, for example, in Visual Studio 2008 and migrate to Visual Studio 2013, it works correctly. If I create a new proj...
asked by 13.01.2014 / 14:53
1
answer

C # Receiving Serialized Objects in a WebMethod

Good afternoon, I am passing a list of objects from JS to C #, to a WebMethod, as a function parameter, what kind of parameters should this be? I created a class to receive the data: public class serializeItens { //Dados de itens pub...
asked by 09.04.2014 / 20:04
2
answers

Execute method on server when closing browser

I need the user to close the browser or the page tab, update the Logged status that is in the database (for user access control). To do this use the following Method JavaScript : window.onbeforeunload = function (event) { PageM...
asked by 04.09.2015 / 16:50
2
answers

C # WebMethod - Send and Receive the same object (custom) via Parameter

My code: Object: public class Person { private string _Nome; private DateTime _Nascimento; public string Nome { get { return _Nome; } } public DateTime Nascimento { get { return _Nascimento; } } public Person(string N...
asked by 11.06.2015 / 16:56
0
answers

File (.PDF) for Ajax / WebMethod WebForms

I would like to know how to get the information of a pdf file (binary, name, size) public class Arqs: IHttpHandler { Funcoes f = new Funcoes(); public void ProcessRequest(HttpContext context) { try {...
asked by 19.10.2017 / 14:07
1
answer

ajax without query permission

I have a webservice in wcf in the link , I can consume it no problem in my iis location with ajax:                                             View User          <div><table id="datagrid"></table></div> <...
asked by 12.05.2017 / 05:30
1
answer

jQuery.ajax calls webmethod (c #) with SpeechSynthesizer

I have a javascript method that checks for an unread message. If it exists it displays the image of an envelope. The method executes a jQuery.ajax that calls a WebMethod that returns the amount of unread messages. But now I need to add Spe...
asked by 30.03.2017 / 16:42