webmethod Questions
1
I need to know the technical difference of those files. Which one is the best option?
When and why should we use it?
I need a human answer, not the MSDN links.
1
Solved
Inside my ASP.NET website I am calling a Web Method using Jquery as follows:
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
data: "{'param1': '" + param1 + "','param2':...
3
Solved
I have a default.aspx.cs which contains my webmethod to call and I have my js file that containg my jquery ajax. I can't get to call the webmethod.
Here is my default.aspx.cs:
protected void Pa...
1
Solved
I am very new to the world of web services so please bear with me.
I am creating a very simple web service in Visual Studio 2010 using .asmx files.
Here is the code I am using:
namespace MyWebSer...
Cobalt asked 20/8, 2012 at 13:45
1
Solved
The project I am currently working on involves MS SQL Server and ASP.net Web Services that use Session variables. Apparently this causes a client's calls to execute in a sequential manner. I want t...
Rafael asked 4/7, 2012 at 8:21
2
Solved
I have two web methods which I wish to overload:
<WebMethod()> _
Public Function GetProject(ByVal id As Int32) As Project
<WebMethod(MessageName:="GetProjects")> _
Public Function Get...
Ta asked 13/10, 2010 at 6:0
1
Solved
Is it possible to call a method attributed with [WebMethod] from javascript on a different page? I.e. using the following jquery ajax call from script on a page called PageTwo.aspx:
$.ajax(
{
t...
2
Solved
I am trying to service AJAX requests with a method in my .aspx page. For some reason I am not getting the data returned that I want. Can anybody tell me what I am doing wrong?
mypage.aspx:
<%...
Granville asked 23/1, 2012 at 2:22
1
Solved
In .NET, is there a standard way to indicate that a web service method has been
deprecated?
To clarify, by 'web service method', I mean a method that has been decorated with the [WebMethod] attr...
Centrosymmetric asked 19/4, 2011 at 17:27
3
Solved
I am working in Asp.Net using C# and I have a [WebMethod] defined in a User Control. I don't want to use a web service.
How can I call a method with an [WebMethod] attribute? I want to call it fro...
3
Solved
I have a set of web services generated using the [WebMethod] attribute. Is it considered "good practice" to throw ArgumentException from such a method if its arguments aren't properly specified (an...
Bookbinder asked 9/2, 2011 at 9:32
1
Solved
This works: through jQuery I'm using a jQuery.ajax(..) call to a page e.g. Default.aspx/GetStatus having a WebMethod attribute:
// Default.aspx
[WebMethod()]
static public bool GetStatus(long id)
...
5
Solved
I created a WebMethod in the code-behind file of my page as such:
[System.Web.Services.WebMethod()]
public static string Test()
{
return "TEST";
}
I created the following HTML page to test it o...
Galloway asked 4/5, 2010 at 20:44
3
Solved
I have been struggling to get my jquery call to a webmethod to work. I am being bounced by the server with a "401 Unauthorized" response. I must have an incorrect setting in the web.config or somew...
Gan asked 19/2, 2010 at 16:27
1
Solved
Does anyone know how to access HttpRequest.Cookies within a static method with [WebMethod] attribute from an aspx.cs page?
It won't let me do it because method is static .
[WebMethod]
public stat...
Ginetteginevra asked 10/9, 2009 at 1:57
3
what is web method attribute in web service? fro example
[WebMethod(EnableSession = true)]
[ScriptMethod(UseHttpGet = true)]
public string GetApplicationDomains(string strParameterList)
{
}
f...
Haunted asked 7/8, 2009 at 7:15
© 2022 - 2024 — McMap. All rights reserved.