惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Security @ Cisco Blogs
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Cisco Talos Blog
Cisco Talos Blog
Cyberwarzone
Cyberwarzone
SecWiki News
SecWiki News
Webroot Blog
Webroot Blog
L
LINUX DO - 最新话题
V
Vulnerabilities – Threatpost
T
Troy Hunt's Blog
Cloudbric
Cloudbric
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
H
Heimdal Security Blog
S
Schneier on Security
NISL@THU
NISL@THU
The Hacker News
The Hacker News
Attack and Defense Labs
Attack and Defense Labs
A
Arctic Wolf
V2EX - 技术
V2EX - 技术
Security Latest
Security Latest
AWS News Blog
AWS News Blog
Scott Helme
Scott Helme
W
WeLiveSecurity
S
Secure Thoughts
Y
Y Combinator Blog
GbyAI
GbyAI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - Franky
量子位
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
K
Kaspersky official blog
P
Privacy & Cybersecurity Law Blog
T
Tenable Blog
The GitHub Blog
The GitHub Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
J
Java Code Geeks
Vercel News
Vercel News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Schneier on Security
Schneier on Security
云风的 BLOG
云风的 BLOG
小众软件
小众软件
Engineering at Meta
Engineering at Meta
宝玉的分享
宝玉的分享
C
CERT Recently Published Vulnerability Notes
Security Archives - TechRepublic
Security Archives - TechRepublic
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Palo Alto Networks Blog

博客园 - Edison.Feng

Objective-读Xml [转]iPhone Mapkit 之在地图加入坐标点 使用MKAnnotation和MKAnnotationView [转]Android:使用URL和URLConnection(多线程下载) 【转】httpModules 与 httpHandlers 【转】挣脱浏览器的束缚(2) - 别让脚本引入坏了事 [转]asp.net中利用ashx实现图片防盗链 求任何一个正数的组合,组合的规则是这个数等于1或2的整数幂之和,请列出组合的情况。 C#利用反射获取对象属性的修改情况 C#利用反射获取对象属性值 Clone:Xml序列化反序列克隆对象 [转]Linux slab 分配器剖析 [转]Linux对I/O端口资源的管理 [转]linux内核分析-初始化分析 start_kernel paging_init [转]Linux TCP/IP 协议栈的关键数据结构Socket Buffer(sk_buff ) [转]Linux系统内核接收以太帧的处理程序 母牛生小牛(递归) MS SQL:Funcation拆分行
我使用WebService:Function.asmx的惊叹!!!
Edison.Feng · 2007-10-22 · via 博客园 - Edison.Feng

我近来的工作是将我们公司的C/S程序翻译成B/S,B/S采用的技术是ASPX.NET AJAX 1.0.

在C/S程序中有一个用来封装通用方法的类:Function.在我将其搬到B/S程序中时,却出现了意想不到的问题:

我的container.aspx不能局部刷新了?我检查了Function.asmx的编码规则和ScriptManager的引用方法,没有任何异常之处.
container.aspx部分代码:
<asp:ScriptManager ID="ScriptManager1" runat="server"> 
    <Services> 
        <asp:ServiceReference Path="Function.asmx" /> 
    </Services>
</asp:ScriptManager>
Function.asmx部分代码:
...
[ScriptSeriver]
...
[WebMethod]
public string Audit()

    return "Hello World !";
}

难道是因为我同时安装了VS2005和VS2008引起了冲突?可是VS2008是完全能兼容VS2005中的程序的啊.
经过漫长而又反复的探测,包括重建Function.asmx,我发现在[ScriptSeriver]和[WebMothed]只存其一的时候,
container.aspx是可以局部刷新的,但我将其全部加上后,container.aspx又不能局部更新了?为什么呢?
为什么在我完全按照ASPX.NET AJAX 1.0的规则使用WebService时,反而异常了呢?!!!
... ...
ScriptManager不能正常工作了?可是ScriptManager引用其他.asmx又能正常工作啊?难不成...见鬼了?!!
... ...
不知出于何种假设,我注意到了Function.asmx的命名!!!天哪!!!Function可是JavaScript的保留字啊!!!
用Function.asmx来命名,不出错,才就怪了.

也许只有像我这么"幽默"的人,才会犯如此般搞笑的失误吧!但我由衷的希望VS 2008里为ScriptManager添加上
关键字的检测功能.

宝贵的一上午啊!