私はこの投稿に従いました:サーバーサイド処理を使用したDataTable。
内部default.aspxでは、私は以下を.ashx使用して呼び出しています:
<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表示しています。
助けてください。Sessionnull