internal void BindDataSourceSession() { if (HttpContext.Current == null || HttpContext.Current.Session == null) { return; } MasterTable.ClearDataSourceSession(); if (MasterTable.DataSource != null) { HttpContext.Current.Session[UniqueID + "_Datasourcedotnet"] = MasterTable.DataSource; } if (MasterTable.m_DataSourceColumns != null) { HttpContext.Current.Session[UniqueID + "_DataTableSettings"] = MasterTable.m_DataSourceColumns; } }