문제

I have a test web application that calls a single PageMethod via Javascript function.

PageMethods.myMethod(params, onSuccess, onFailed);

When i use urlRewriting it doesn't work anymore. So, i searched web and i found this to add to js file.

Pagemethods.set_path("/the_real_path.aspx");

However this does not work. It gives an 404 not found error when i looked web developer tool in chrome with F12.

Is there any advice you can give ? Any help would appreciated

Below are done.

-ScriptManager EnablePageMethods = True
-Method is public and shared(static)
-Method is decorated with <WebMethod(True)>
도움이 되었습니까?

해결책

Anyway, I found another way to call the WebMethod. I used Webservice. I don't need to use PageMethods.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top