I would like to know what url should we use on AJAX to call a WebMethod in an external C# class
To call a [WebMethod]
on a page's code behind by AJAX we use:
url: 'default.aspx/Method'
But i am being unable to access a [WebMethod]
in MyClass.cs (located in /foo/)
Those, for example, don't work:
url: 'default.aspx/MyClass.Method'
url: 'foo/MyClass.cs/Method'
How can i access a WebMethod on an external C# class file?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…