Did you follow the ASP.NET Standard for creating a web method.
signature must be public static string MethodName(your parameters)
You also need to decorate it with the [WebMethod], [ScriptMethod] attributes.
If it doesn't follow ASP.NET standard, your jquery ajax post cannot find the method and therefore you'll receive a 404.