webmethod Questions

4

I have tried to download the file from the server through the webmethod but it has not work for me. my code as below [System.Web.Services.WebMethod()] public static string GetServerDateTime(stri...
Rettke asked 23/8, 2012 at 7:47

5

Solved

How does one return an error in an aspx page method decorated with WebMethod? Sample Code $.ajax({ type: "POST", url: "./Default.aspx/GetData", data: "{}", contentType: "application/json; ch...
Peshitta asked 27/8, 2011 at 17:37

1

I have tons of [WebMethod] in whole application and I want all my [WebMethod] to be async. I decorated all my[WebMethod] signatures with async and await keywords and then I run my app. It didn't wo...
Thursday asked 30/1, 2017 at 10:55

5

Solved

I've set a breakpoint in the following WebMethod but I'm never hitting the breakpoint. cs: [WebMethod] public static string search() { return "worked"; } aspx: function search() { $.ajax({ ...
Duchy asked 3/8, 2011 at 14:57

8

Is it possible to place a WebMethod in an ascx.cs file (for a UserControl) and then call it from client-side jQuery code? For some reasons I can't place the WebMethod code in an .asmx or .aspx fil...
Nembutal asked 12/4, 2011 at 15:58

4

Solved

So, I keep getting the 500 - Internal server error page on my .net site when I set the maxJsonLength in my web.config. I'm modifying the .config because even though I use MaxJsonLength = Int32.MaxV...
Doorplate asked 5/10, 2012 at 16:51

13

Solved

Been stuck with this for hours {"Message":"Authentication failed.","StackTrace":null,"ExceptionType":"System.InvalidOperationException"} I'm trying to call this WebMethod in my ASP.Net Webform...
Fenestra asked 12/4, 2014 at 17:14

12

Solved

I am getting an error in an ajax call from jQuery. Here is my jQuery function: function DeleteItem(RecordId, UId, XmlName, ItemType, UserProfileId) { var obj = { RecordId: RecordId, UserId: UI...
Ancestress asked 15/3, 2010 at 8:43

6

Solved

We have an older ASP.NET WebForms application which performs AJAX request by using jQuery $.ajax() calls on the client side, calling static methods in the page code-behind decorated with [WebMethod...
Podagra asked 5/6, 2014 at 7:51

3

Solved

I know there are simular posts out there, but I found no help in any of them. My web methods work when im not using url rewriting, but as soon as I turn it on it stop working. jQuery $.ajax({ ...
Psychologize asked 8/5, 2012 at 13:45

2

Solved

I have a div which I would like to fill with a jsTree: I get the "Loading" icon where the tree is meant to display, however, there would seem to be a javascript error, even though one is not throw...
Saida asked 20/10, 2014 at 13:59

3

Solved

I'm trying to call a web service using the Web Service Task in SSIS. In the HTTP connection Manager I gave the Server URL, I haven't defined any proxy server. I downloaded the WSDL file. And I sele...
Multipara asked 8/5, 2017 at 13:4

1

I have a form with a File Input and one Button, when I press the button the file should go to the server side. When I send a file to the server the ajax response is success, never stop in the c# w...
Yardman asked 16/11, 2016 at 21:4

8

I have static method in which I want to extract querystring value of the request. But it gives me null value when i am calling it from webmethod. Below is the some code public static int GetLatest...
Milliken asked 29/7, 2013 at 12:23

1

Solved

Integrating a payment Checkout Stripe. Used JavaScript Stripe handler, to apply Stripe charge on the transaction. After charging the customer, it returns token. Using this token we can proceed for...
Accompany asked 26/9, 2016 at 13:25

4

Solved

I am passing a javascript variable containing a string to the server via jquery.ajax. Although the "success" condition is called, the server-side WebMethod is never called. Client: $.ajax({ type...
Giorgio asked 31/8, 2011 at 20:25

8

How do I call a non-static method in server side(aspx.cs) from client side using javascript (aspx)....? As far as I know I can call static method in server side from client side... server side: ...
Assr asked 1/9, 2009 at 2:24

2

I'm using some WebMethods in a System.Web.UI.Page to handle some ajax requests, and I'm trying to store an object in the session to retain information across several ajax requests and even after le...
Ankle asked 8/12, 2016 at 18:31

2

This is a C# web services project in Visual Studio that has existed for a number of years. Today it started throwing an exception upon startup within Visual Studio, but only when the debugger is at...
Encamp asked 27/10, 2014 at 15:31

3

I am loading tab content data through jQuery's ajax post method via web method with around 200-300 records. And getting following error in the console: Error: Sys.Net.WebServiceFailedException: ...
Averment asked 9/8, 2012 at 10:17

3

Solved

I want to download a file using jQuery Ajax web method, but it's not working. Here is my jQuery ajax call to web method: function GenerateExcel() { var ResultTable = jQuery('<div/>').appe...
Dobruja asked 26/9, 2012 at 11:54

2

Solved

I am trying to streamline the process of returning the data from my WebMethod layer to the client and represent the set of parameters in coming from the client in a Dictionary<string,string> ...
Imco asked 28/6, 2013 at 20:50

1

Solved

I am working on my ASP.Net web application where I have to populate an HTML table with Ajax data source for which I am making a use of jQuery DataTables plugin. HTML code: <table class="table...
Knowledge asked 11/11, 2015 at 11:35

1

Solved

I'm using jqPlot to generate a stacked bar chart based on data from a web method. The chart renders successfully, but is blank. When I set the pointLabels to 'true', they appear in a jumble to th...
Ornithine asked 22/10, 2015 at 17:20

4

Solved

I am trying to create a new webpage where i need to display almost 10 different gridviews and charts. Gridviews are binded on pageload event and charts are displayed using jquery-ajax method (usin...
Rainout asked 28/9, 2015 at 10:12

© 2022 - 2024 — McMap. All rights reserved.