asp.net - PageMethod and URl Rewrite -


i having issue pagemethod + url rewrite.

when using regular url: http://myweb.com/mypages/abc.aspx

call pagemethod works fine.

but when use friendly url : http://myweb.com/abc work. no error though.

any appreciated.

you can set right path aspx file javascript using pagemethods.set_path method:

<script type="text/javascript">    pagemethods.set_path("/mypages/abc.aspx"); </script> 

the answer taken official asp.net forum:

http://forums.asp.net/p/1599846/4066920.aspx#4066920


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -