更新时间:2023-02-23 12:45:51
您可以使用 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: