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

推荐订阅源

T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
L
LINUX DO - 热门话题
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
Cisco Talos Blog
Cisco Talos Blog
AI
AI
L
LINUX DO - 最新话题
H
Heimdal Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The GitHub Blog
The GitHub Blog
I
Intezer
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
S
Securelist
博客园_首页
IT之家
IT之家
Schneier on Security
Schneier on Security
博客园 - 叶小钗
罗磊的独立博客
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
W
WeLiveSecurity
The Register - Security
The Register - Security
D
DataBreaches.Net
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
Recorded Future
Recorded Future
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tailwind CSS Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
T
Tor Project blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com

博客园 - jerry zheng

九个使用F#的理由 修改SharePoint网站最大上载大小时有时需要关注的事项 给网站加上 开心网 转帖功能 接着加班 。 关于ASP.NET中用GB2312编码后Request的乱码问题 一年过去了 我每天问自己以下几个问题: 常用方法-MIS系统常用的树菜单 7月份项目开发心得 7月份的第一个星期五。 在repeater,gridview,datalist (数据源)中使用“用户自定义控件”时应该注意 javascript常用函数集 加班通宵的日子 程序员的人生 该将如何规划?(转) 浅谈数据库设计技巧(上)、(下) 写给WEB2.0的站长 让silverlight支持输入文本框 start learning silverlight 今天正式注册个人博客
基于ASP.NET AJAX 实现 client js call back web services ,return dataset or datatable...
jerry zheng · 2008-05-28 · via 博客园 - jerry zheng

MS的ASP.NET AJAX 是一个很好的构架,
这个DEMO主要是展试了如何用JSON,由于有Microsot.Web.Preview.dll的支持. 对于从WEB SERVER 上返回DataSet ,DataTable ,DataRow.将变的很简单,
以下是实现的步骤.
    1.先下载 Microsot.Web.Preview.dll
    2.在WEB config 加上 以下代码.

web  config

     

     3.新建 一个WEB SERVICES文件.

web services Code

   (注意:web services  里的[System.Web.Script.Services.ScriptService] 属性要开起来..否则会提示: 找不到web services.)

client js code

   

   (注意:在JS类里调用函数,要加"this",否则会提示:找不到函数.
.       使用js类时.和使用.cs文件一样,先new 一个
.
     4. test 代码.
        demo = new  ASPACE.GetDataTable("test");
        
        demo.Click_GetDataTable();

以上就是所有的代码.