title: WebMethod vs ScriptMethod
body: <p>I have a .NET 3.5 aspx place with a method marked with the <code>[WebMethod]</code> attribute. I'm calling this with jQuery, sending JSON in both directions. This all works great. My question is, what does <code>[ScriptMethod]</code> do when applied to an method? I've tried this and it seems to yield the same result. Are <code>ScriptMethod</code> and <code>WebMethod</code> identical and interchangeable, or does one provide functionality and/or overhead that the other doesn't? In general, I find myself confused with all of the options available for implementing web services and I'd like to know what the pros and cons are for each.</p>