As Abdul Samad KP answered in page_Load
Then add your table to asession
void Page_Load(object sender, ArgEvent e)
{
if (!IsPostBack)
{
DataView DV = Db.Qury("Select Id, Name from tblInputs");
for(int i = 0; i < DV.Count; i++)
{
Table1.Rows.Add(new TableRow());
TableCell cell = new TableCell();
CheckBox chkbox = new ChackBox();
chkbox.ID = DV[i][0].ToString();
chkbox.Text = DV[i][1].ToString();
cell.Controls.Add(chkbox);
Table1.Rows[Table1.Rows.Count - 1].Cell.Add(cell);
}
Session["mytb"]=Table1;
}
}
protected void btn_Submit_Click(object sender, EventArgs e)
{
DataTable mytb = (DataTable)Session["mytb"];
Table1=mytb;
}
I didn't test the code but the logic should be good
Hope it helps!
Regard,
Samira