webmethod Questions
2
Currently the web methods or most of the methods in classic asp .net serializes using system.web.script.serialization.javascriptserializer class and this returns the javascript object's datetime me...
2
Solved
I am new to jqGrid and I have found it difficult to follow the documentation jqGrid Documentation
I cannot figure out how to call a WebMethod when setting up the JQGrid. I have been successful in ...
3
Solved
i have a ajax request which works well using "POST" but when used "GET" it gives me the following error,
{"Message":"An attempt was made to call the method \u0027GetSomething\u0027
using a GET re...
Bespatter asked 25/5, 2012 at 7:54
1
Solved
I'm testing the Azure server with pages that use Ajax(json)/Webmethod functions.
Some of those functions check HttpContext.Current.User.Identity.IsAuthenticated before they run code. Unfortunatel...
Skewback asked 17/5, 2015 at 9:28
1
I´m developing a Web Service, using Glassfish, using SOAP. I have several web methods, and I want to get introduce my webmethod name and his parameters to http head request.
For example:
I have thi...
Interpol asked 8/5, 2015 at 10:45
1
When I make a JQuery call, I get an Authentication failed response:
{
Message: "Authentication failed.",
StackTrace: null,
ExceptionType: "System.InvalidOperationException"
}
jQuery call:
...
2
Solved
Im trying to stringify a javascript object and then pass the string as a parameter to a WebMethod in Code Behind. I can't get it to work as I get a Internal Server Error of 500 and the stacktrace s...
Arlyne asked 23/4, 2015 at 8:28
3
Solved
I've got a function on all pages in my site which is located in my master page and I want it to run from some jQuery Ajax method.
I've got some code like this at the moment
jQuery
$(document).re...
2
I wrote a simple webmethod that I call on the client side to check if a value exists in the database on text change. It works fine locally, but when I move it to our Development environment it retu...
2
Solved
If I call webmethod from jQuery.Ajax with installed Nuget packages Microsoft.AspNet.FriendlyUrls v 1.0.2 and Microsoft.AspNet.Identity v.1.0.0., then I get the data object, but without data.d but w...
1
Solved
I am using summernote, I want to upload image to my web server.. Below is my code which I am using
Default.aspx
<script type="text/javascript">
$(document).ready(function () {
$('#summern...
1
I am trying to figured it out, but have no success for now. Is it possible to use async/await in webmethod asmx service ? What I found till now is that async/await can be used only in WCF ser...
Cassatt asked 26/6, 2012 at 16:21
3
Solved
I have a control which has a textbox which, when its content changes, will tricker this javascript function:
page parameter is document.URL as the control has no attached .asxc page and fieldValue...
3
Solved
I'm getting error like
An object reference is required for the non-static field, method, or
property 'System.Web.UI.Page.Session.get'
Can you suggest me to recover from this problem in sessi...
1
Solved
I'm trying to understand web api and some news about web methods. I've heard that we should stop using web methods from a few sources. Additionally, is Web API the successor if web methods should n...
Pertinacious asked 27/2, 2014 at 2:48
4
Solved
EDIT: Summary: It seems that my web app can be accessed by anyone (only firefox or chrome) and by me using my main computer. If i try to access http://luiscarlosch.com/WebFormClean.aspx from any ot...
Irreverence asked 3/2, 2011 at 22:25
1
Solved
I have a LinkButton on a page that performs a post-back, but also has an onClientClick event. The idea is to set some session variables in the background from client-side data (don't ask).
I've pl...
Subterfuge asked 12/12, 2013 at 21:37
1
I declared a WebMethod in my default.aspx.cs file..
[WebMethod]
public static void ResetDate()
{
LoadCallHistory(TheNewDate.Date);
}
Why must the WebMethod method be declared static?
2
I am trying to pass in some simple JSON to an ASP.NET 4.5 Webmethod from jQuery. And it is not working quite the way I want it. It works if I accept the inputs as separate parameters:
[WebMethod]
...
2
Solved
I am familiar with web method. Now I got a suggestion to use web API instead of web method. I had done a demo of ASP.NET web API it's more closer to a MVC architecture am using the classical asp.ne...
Sycosis asked 5/6, 2013 at 6:3
1
In an ASP.NET ASMX WebMethod that responds JSON, can i both throw an exception & set the HTTP response code? I thought if i threw an HttpException, the status code would be set appropriately, b...
Kegler asked 10/1, 2013 at 16:16
2
Solved
I am trying to send an email through a WebMethod Below is the code I typically use on a regular post back
[WebMethod]
public static void SendEmail(string name, string phone, string emailaddress, s...
Youngyoungblood asked 19/4, 2013 at 2:53
2
Solved
I have a method on a page marked as a [WebMethod] that uses some session state as part of its operation. After I wrote this code, I suddenly had a flash of memory that you need to use EnableSession...
Randalrandall asked 22/3, 2013 at 13:39
1
Solved
I'm getting an error when I call my WebMethod due to the Date format. I have a Date equal to DateTime.MinValue.
calling...
ko.toJSON({ employee: viewModel.employee });
[WebMethod]
public static...
Deafen asked 19/2, 2013 at 18:36
1
The Issue
I have an ASP.NET 4.0 WebForms page with a simple web-service WebMethod. This method is serving as a synchronous wrapper to asynchronous / TPL code. The problem I'm facing, is that the i...
Tinnitus asked 20/2, 2013 at 6:11
© 2022 - 2024 — McMap. All rights reserved.