Webservices method in C# via Javascript -


i trying call webservice method .aspx page thro' javascript & error, have [webmethod] on top of c# method. unknown web method [object object].
parameter name: methodname

    <h2> <i>unknown web method [object object].<br>parameter name: methodname</i> </h2></span> 

description: an unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code.

    <br><br>      <b> exception details: </b>system.argumentexception: unknown web method [object object].<br>parameter name: methodname<br><br>    [argumentexception]: unknown web method [object object]. parameter name: methodname    @ system.web.script.services.webservicedata.getmethoddata(string methodname)    @ system.web.script.services.resthandler.createhandler(webservicedata webservicedata, string methodname)    @ system.web.script.services.resthandler.createhandler(httpcontext context)    @ system.web.script.services.resthandlerfactory.gethandler(httpcontext context, string requesttype, string url, string pathtranslated)    @ system.web.script.services.scripthandlerfactory.gethandler(httpcontext context, string requesttype, string url, string pathtranslated)    @ system.web.httpapplication.materializehandlerexecutionstep.system.web.httpapplication.iexecutionstep.execute()    @ system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously) 

1 - think answer there:
how call webservice in javascript firefox 3.0

it illustrates use of [system.web.script.services.scriptservice()] using easy , clean code , style.


2 - alternativelly, use jquery illustrated in answer: how use jquery call asp.net web service?


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -