PageMethod的和URL重写 [英] PageMethod and URl Rewrite

查看:219
本文介绍了PageMethod的和URL重写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的PageMethod的+ URL重写问题。

I am having issue with my pagemethod + url rewrite.

在使用常规网址: http://myweb.com/mypages/abc.aspx

调用PageMethod的正常工作。

call to the PageMethod works fine.

但是当我使用一个友好的URL: http://myweb.com/abc 它的工作。没有错误,但。

But when i use a friendly URL : http://myweb.com/abc it does work. No error though.

任何帮助将是非常美联社preciated。

Any help would be much appreciated.

推荐答案

您可以使用PageMethods.set_path方法设置为从JavaScript ASPX文件正道:

You can set the right path to the aspx file from javascript using the PageMethods.set_path method:

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

答案是从官方asp.net论坛采取:

The answer is taken from the official asp.net forum:

http://forums.asp.net/p/1599846/4066920。 ASPX#4066920

这篇关于PageMethod的和URL重写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆