Posted on: 9/20/2013 5:43:47 AM | Views : 275

Please can any one explain me how to assign the loop variable to Session or ViewState,
Here i Have 5 loops in for loop their certain textboxes to enter the marks in the textbox,please anyone can clarify me the how to assign that to session
viewstate.
for (int i = 0; i < chkScholArea.Items.Count; i++) { if (chkScholArea.Items[i].Selected) { TableCell tv2 = new TableCell(); TextBox txt1 = new TextBox();      ------>        //Here i want to declare the particular Marks enter into that textbox to session and used it in at the time of Adding . txt1.Width = 50; tv2.Controls.Add(txt1);                                 in these table creation and Adding sections are different in the same page ,please help me to achieve this tv2.Style.Add("align", &quo ...

Go to the complete details ...