Ajax PageMethods在cshtml页面中! [英] Ajax PageMethods in cshtml page!

查看:85
本文介绍了Ajax PageMethods在cshtml页面中!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我可以在简单的.cshtml页面中使用PageMethods吗?我的应用程序不是MVC,但剃刀工作正常,但当我尝试使用< script> PageMethods.xyz(呼叫,CALLF);< /脚本>然后显示没有定义PageMethods的错误。

或者还有另一种方法可以从asp.net页面的其他web服务或webmethod获取数据。



谢谢,

Hi All,

Can I use PageMethods in the simple .cshtml page? My application is not MVC but razor works good but when I tried to use <script> PageMethods.xyz(calls,callf);</script> then an error showing PageMethods is not defined.
Or there is another method for get the data from other web services or webmethod in asp.net page.

Thanks,

推荐答案

谢谢......这是工作
Thank you......it's work


.ajax({


这篇关于Ajax PageMethods在cshtml页面中!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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