Some problems about using DataTables with asp.net

Some problems about using DataTables with asp.net

jimmyjimmy Posts: 1Questions: 0Answers: 0
edited May 2010 in General
hello,I'm use DataTables with asp.net(not asp.net mvc)
In "default.aspx" like this
[code]

protected void Page_Load(object sender, EventArgs e)
{
Response.ContentEncoding = System.Text.Encoding.UTF8;
string str = "{\"sEcho\":3,\"aaData\":[[\"Trident\",\"Internet Explorer 4.0\",\"Win 95+\",\"4\",\"X\"],[\"Presto\",\"Opera 8.5\",\"Win 95+ / OSX.2+\",\"-\",\"A\"],[\"Presto\",\"Opera 9.0\",\"Win 95+ / OSX.3+\",\"-\",\"A\"],[\"Presto\",\"Opera for Wii\",\"Wii\",\"-\",\"A\"],\"KHTML\",\"Konqureror 3.3\",\"KDE 3.3\",\"3.3\",\"A\"],[\"KHTML\",\"Konqureror 3.5\",\"KDE 3.5\",\"3.5\",\"A\"],[\"Tasman\",\"Internet Explorer 4.5\",\"Mac OS 8-9\",\"-\",\"X\"],[\"Tasman\",\"Internet Explorer 5.1\",\"Mac OS 7.6-9\",\"1\",\"C\"],[\"Tasman\",\"Internet Explorer 5.2\",\"Mac OS 8-X\",\"1\",\"C\"],[\"Misc\",\"NetFront 3.1\",\"Embedded devices\",\"-\",\"C\"],[\"Misc\",\"NetFront 3.4\",\"Embedded devices\",\"-\",\"A\"],[\"Misc\",\"Dillo 0.8\",\"Embedded devices\",\"-\",\"X\"],[\"Misc\",\"Links\",\"Text only\",\"-\",\"X\"],[\"Misc\",\"Lynx\",\"Text only\",\"-\",\"X\"],[\"Misc\",\"IE Mobile\",\"Windows Mobile 6\",\"-\",\"C\"],[\"Misc\",\"PSP browser\",\"PSP\",\"-\",\"C\"],[\"Other browsers\",\"All others\",\"-\",\"-\",\"U\"]]}";
Response.Write(str);
Response.End();
}

[/code]
in server_side.aspx
[code]

$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "../json/Default.aspx",
} );
} );

[/code]
but when I open server_side.aspx,there is no data in the webpage.
could you tell me how can I do?
and could you show me a simple about using datatables with asp.net(not asp.net mvc)
thanks for help
This discussion has been closed.