title: C# Where to return JSON from
body: <p>I have some JQuery / JSON features on a website I'm working on. These features are going to be used on a few different pages so I'm wondering where I should put the code that returns the JSON. From what I understand I basically have 3 options. I could create an ASHX file, a web service ASMX or put a public static [webmethod] method on the page that's using the feature. Because I'm reusing these features I suspect the last option is not the correct one. What would be best practice in this scenario?</p>