2
我关注此帖:DataTable using Server Side Processing。
里面default.aspx
,我使用调用.ashx
:通过引用通用处理程序(.ashx)在Asp.net
<script type="text/javascript">
$(function() {
$('#example').dataTable({
'bProcessing': true,
'bServerSide': true,
'sAjaxSource': '/data.ashx'
});
});
在Page_Load
的defaut.aspx
事件:
Employee emp=new Employee();
emp.name="abc";
emp.addr="pqr";
emp.phone="123";
哪里Employee
是类的名称。
如何将员工对象传递给Data.ashx
?
我试过使用HttpContext.Current.Session
,但显示Session
对象为null
。
请帮忙。