PageMethod 和 Intellisense
我正在使用 VS2010 但
函数 GetSessionVal() { PageMethods.GetViewState(onSuccess) 当我编写PageMethods
并点然后在我的情况下服务器端方法名称“GetViewState”未显示在自动完成列表中。我需要设置什么吗?
i am working with VS2010 but
function GetSessionVal()
{
PageMethods.GetViewState(onSuccess)
}
when i write PageMethods and dot then server side method name in my case "GetViewState" is not showing in auto completion list. do i need to set anything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
(通过您问题中的自动完成词,我认为您的意思是智能感知)
您是否在某处读到 PageMethods 将出现在智能感知中?我不确定以前是否听过或读过这个。我尝试搜索,但找不到任何具体信息
这。因此,如果一般不支持,那么它可能不会出现。如果您得到一些参考,请在此处发布。
顺便说一句,Ajax 智能感知的一般解决方案是您可以删除 ajax 的缓存架构,该架构可在以下路径中找到(在 Windows 7 上,对于 xp 类似路径)。尝试一下。
C:\Users\*用户名*\AppData\Roaming\Microsoft\VisualStudio\10.0\ReflectedSchemas
(By Auto-complete word in your question, I think you mean Intellisense)
Did you read somewhere that PageMethods will appear in Intellisense? I am not sure of heard or read this before. I tried to search but could not get anything specific with
this. So if that's not supported in general, then it may not appear. If you get some reference post it here.
On a side note, a general solution for Ajax intellisense is that you can delete the cached schema for ajax which is available at following path (on windows 7, for xp similar path). Git it a try.
C:\Users\*username*\AppData\Roaming\Microsoft\VisualStudio\10.0\ReflectedSchemas
输入受保护的覆盖,您可能会在可覆盖的页面方法上获得智能感知。
Type in protected override and you might get intellisense on Page Methods available to override.