asmx

Programmatically get JavaScript generated by *.asmx/js

Hello, I'm in the process of creating a build mechanism that will automatically minify and combine a certain set of JavaScripts. The problem I'm facing is that to actually incorporate these web services, I need to get that content somehow. I'm aware that it's tentatively possible using the WebClient class and invoking the actual URL, ...

Why is this jQuery ajax call to C# web method not working

Here is my JS: function declassifyAjax(e) { var items = getSelected(); var docIds = new Array(); items.each(get); //get ids of QcItem/docId we are dealing with function get(count, el) { docIds[count] = $(el).parent().attr('id'); } var dataObj = new Object(); dataObj.batchId = batchId; dataO...

ASP.NET WebService: don't complain on a date format

One of the field in my web service method accepts DateTime value. Once service user provided value in wrong format: "31-10-2010" (or probably it was "31-10-10", to be honest: I not sure, are implementing logging right now). It is "dd-mm-yyyy" instead of "standard XML datetime been "yyyy-mm-ddTHH:MM:SS". The problem that instead of rejec...

How to get row data from Web Service Request?

I want to check raw data string (raw xml) received by my web service methods (for logging and debugging purposes). I saw recommendations: to handle 'BeginRequest' event in HttpApplication. But I don't see which field of 'Request' object contains this POST data? ...

Is it possible to make ASP.NET WebMethod CacheDuration configurable?

I'm using the following attribute on a web method in a web service: [WebMethod(CacheDuration = 60)] Is it possible to make the CacheDuration value of 60 configurable from a web.config setting? Or is there another was to set CacheDuration not using an attribute? ...

call asmx via jquery gets wrong url

hi everyone 4 a few days now im trying 2 get an asmx webservice to work via jquery Heres my code <script type="text/javascript"> $(document).ready(function () { $("#btnTest").click(function () { $.ajax({ type: "POST", url: "/WebService.asmx/HelloWorld", cache: fal...

Load data from Webservice (asmx) to jqgrid. Please help me

I create a Sample to test jqgrid. GetDataService.asmx: using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Linq; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using System.Xml.Linq; using System.Web.Script.Services; using System.Web.Script.Serializatio...

Deliver a Crystal report using Web Service (ASP.NET)

My end goal is to open up a new browser window and display an animated progress gif whilst loading a slow Crystal Report. Using traditional asp.net methods to achieve this always results in the gif not animating during a postback, unless I use update panels but that's when things start getting messy. I have read lots of articles describ...

asp web service: check if user is logged-in

I'm creating a web service that'll be called from a web form in asp.net. How does the web service check if the user is logged-in and if it is the logged-in user that's actually requesting the service? thanks ...