The objective is to call a method which does it\'s thing then returns a JSON object.
I\'m new to JSON.
I have a default.aspx and in it the following code. No
Been a while since I worked with webforms, but if remember correctly it should work if you put the webmethod attribute over GetFile method and make that method static.
[WebMethod]
public static string GetFile(string day)
Furthermore, how you post data in ajax method is a bit off. Remove querystring day from url and data should be in json format, something like {"day":day}