Hello all, I have been surfing, googling, coding and researching to no avail and I am beginning to wonder if I am misunderstanding webservices in general.
My current applications use .NET 2.0/C#/SQL etc on the back-end and pure HTML/CSS/JavaScript and Dojo on the front end. For numerous reasons our .aspx pages no longer use any of the server-side controls including such things as <head runat="server"> etc. I want to use the dojo.bind functionality against some sort of web method and return JSON results. Currently I am simulating this by creating certain aspx pages that take a querystring variable that is processed through a lengthy case statement to ultimatly call the correct function. This seems klunky plus it results in two files (e.g. aspx and aspx.cs) where the .aspx file is completely empty and redundant. I would like to put all of my functionality into a .cs file only, decorate the various functions with some sort of [WebMethod] or [AjaxPro.AjaxMethod] and then call a .asmx or .ashx from my client. So far, it seems that in order to do this with either Atlas or AjaxPro I have also include a number of additional javascript files in my client. Is there any other way of calling an AjaxPro AjaxMethod? I am concerned that these auto-generated javascripts may at some point collide with other client-side code, may be injected into the wrong part of my page and may not work well with dojo. Also, we are looking at exposing more of our application via aa web based api and there would be no easy way for others to include these same auto generated javascript files. Sorry for the lengthy description. If someone could point me in the right direction I would be very grateful. Incidentally, I am currently using the stand-along JSON serializer DLL in my hacked .aspx-case-statement approach. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ajax.NET Professional" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/ajaxpro The latest downloads of Ajax.NET Professional can be found at http://www.ajaxpro.info/ Don't forget to read my blog at http://weblogs.asp.net/mschwarz/ The open source project is now located at http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro -~----------~----~----~----~------~----~------~--~---
