【发布时间】:2012-10-09 17:59:33
【问题描述】:
我关注了这个帖子:DataTable using Server Side Processing.
在default.aspx 内部,我使用以下方式调用.ashx:
<script type="text/javascript">
$(function () {
$('#example').dataTable({
'bProcessing': true,
'bServerSide': true,
'sAjaxSource': '/data.ashx'
});
});
在defaut.aspx 的Page_Load 事件上:
Employee emp=new Employee();
emp.name="abc";
emp.addr="pqr";
emp.phone="123";
其中Employee 是类的名称。
如何将员工对象传递给Data.ashx?
我尝试使用HttpContext.Current.Session,但将Session 对象显示为null。
请帮忙。
【问题讨论】:
标签: datatable parameter-passing pass-by-reference generic-handler