How do you access a WebMethod in class library?
<p>I have a custom class library that performs validation. I want to open up this class for use within Javascript. I understand that I can easily achieve this by utilizing WebServices/WCF or by creating a function on my page with the WebMethod attribute, but it'd be nice not to have to set all that up for every project.</p>

<p>Ideally I'd like to just add the WebMethod attribute to my class library methods and then call them using Javascript.</p>
