November Happy Hour will be moved to Thursday December 5th.

AJAX call to WebMethod in my template page returns 404 - Page not found

Vote:
 

Hello,

I encountered problem regarding the use of jquery / ajax to call a WebMethod from my TemplatePage. (.aspx file)!

My URL looks like this -> "/MyTemplatePage.aspx/MyWebMethod"

When I call it using $.ajax() it returns 404! I cann't find wrong with my code! 

By the way, below is the concrete defination of my webmethod.

 

[WebMethod(EnableSession=true)]

public static string MyWebMethod(string s1, string s2, string s3)
{
       return "OK";
}

 

#60518
Aug 14, 2012 4:00
Vote:
 
#60719
Aug 22, 2012 10:24
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.