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