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

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
T
Threat Research - Cisco Blogs
小众软件
小众软件
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
C
Cyber Attacks, Cyber Crime and Cyber Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Tailwind CSS Blog
Cisco Talos Blog
Cisco Talos Blog
V
V2EX
博客园 - 【当耐特】
C
Cybersecurity and Infrastructure Security Agency CISA
Hugging Face - Blog
Hugging Face - Blog
The Cloudflare Blog
The Last Watchdog
The Last Watchdog
Simon Willison's Weblog
Simon Willison's Weblog
T
Threatpost
S
Secure Thoughts
O
OpenAI News
P
Proofpoint News Feed
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Application and Cybersecurity Blog
Application and Cybersecurity Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
Scott Helme
Scott Helme
T
Tenable Blog
A
Arctic Wolf
L
LINUX DO - 热门话题
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
www.infosecurity-magazine.com
www.infosecurity-magazine.com
V
Visual Studio Blog
Hacker News: Ask HN
Hacker News: Ask HN
Hacker News - Newest:
Hacker News - Newest: "LLM"
腾讯CDC
博客园 - Franky
WordPress大学
WordPress大学
Know Your Adversary
Know Your Adversary
博客园_首页
雷峰网
雷峰网
IT之家
IT之家
PCI Perspectives
PCI Perspectives
L
LINUX DO - 最新话题
H
Heimdal Security Blog

博客园 - jascha

Eclipse可视化基面设计方法 Eclipse RCP的解释 java学习步骤 JAVA中的开源框架 Javascript键盘响应及空格屏蔽 - jascha - 博客园 给Eclipse换个启动界面! 干嘛要序列化? Eclipse安装AJAX环境(ATF,DOJO,Extjs...) Eclipse快捷键 yui-ext~~~cool! 部署Tomcat环境 捣鼓Mashup Mashup,老调新唱~ 微软的新技术 久违,重逢 对网格技术应用的分析 比较集群、网格、P2P区别(表格阐释) 我的博客列表 开张大吉啦!
ASP.NET AJAX调用WS步骤
jascha · 2007-03-23 · via 博客园 - jascha

1.配置web.config (直接选择ASP.NET AJAX项目就不用特别配置了)
2.新建web服务:testws.asmx
3.在testws.cs文件中添加属性:(这点最重要)

[System.Web.Script.Services.ScriptService()]


4.新建aspx文件:
   添加一个ScriptManager:

<asp:ScriptManager ID="ScriptManager1" runat="server">
      
<Services>
                    
<asp:ServiceReference Path="hotdataws.asmx" />  
          
</Services> 
    
</asp:ScriptManager>


5.添加一个HTML button,onclick事件:

<input id="button" type="button" value="调 用" onclick="return OnbuttonGo_click()" />

6.JAVASCRIPT中添加事件:

function Button1_onclick() {
HelloWorld(Oncomplete);
}
 

Oncomplete(args)
{
  alert(args);
}