문제

I'm using PageMethods inside a javascript function to invoke methods that in codebehind. It works perfect if i don't use urlrewriting. If i use it, it breaks this code

PageMethods.myMethod(parameters, onSuccess, onFailed);

and it's like only refreshing the aspx page. It invokes only page_load.

I used rewriting rule something like that

<rewrite url="~/uso/(.+).aspx" to="~/uso/$1.aspx" processing ="stop"/>

As you see, I redirected to page itself. However it still breaks it. I use intelligencia rewriter. Do you think it may be related with that urlrewriter module ?

Any help would appreciated.

도움이 되었습니까?

해결책

Anyway, I found another way to call the WebMethod. I used Webservice.

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