摘要: 使用场景就是,希望在ashx中返回DataTable,然后在页面中进行异步调用和显示。原先做法是想用json格式返回数据。因为DataTable可以直接序列化为XML格式,所以我推荐用XML返回。而不是再去解析为json之类的格式。1. 创建ashx文件using System;using System.Collections.Generic;using System.Web;using System.Web.Services;using System.Data;namespace WebApplication1{ /// <summary> /// $codebehindclas 阅读全文
posted @ 2012-03-29 13:33 烁星 阅读(1942) 评论(0) 推荐(0) 编辑
摘要: ViewState is a very misunderstood animal. I would like to help put an end to the madness by attempting to explain exactly how the ViewState mechanism works, from beginning to end, and from many different use cases, such as declared controls vs. dynamic controls.There are a lot of great articles out 阅读全文
posted @ 2012-03-29 12:22 烁星 阅读(255) 评论(0) 推荐(0) 编辑