I have i jqgrid in MainPage.aspx, and i get data from a JSON page (page JsonSource.aspx). This JSON page get data from a DataTable. And i want to get this DataTable in page A (i don't want get data from database again).
THis is MainPage.aspx:
jQuery("#jQGridDemo").jqGrid({
url: 'http:///JsonSource.aspx',
datatype: "json",
In JsonSource.aspx:
protected void Page_Load(object sender, EventArgs e)
{
DataTable dt = InitDataSource();
string json = ConvertDataTabletoString(dt);
////context.Response.Write(json);
Response.Clear();
Response.ContentType = "application/json; charset=utf-8";
Response.Write(json);
Response.End();
}
If this is impossible, can you give me another solution. My data is huge, and i want get it only 1