Session issue
-
16 Mart 2012 Cuma 08:11
I am currently doing a project on online examination.
I store the correct answer in a session object. When i move on to the next webpage the value of the session object changes. How can I solve this problem?
Code:
Ans += sdr["corAns"].ToString();
Session["Ans"] = Ans;// value is 1412
2nd web page:
string Rans = Session["Ans"].ToString(); // value is1214
Please help me. I'm new in programming.
Tüm Yanıtlar
-
19 Mart 2012 Pazartesi 16:24Hi rao6,
Save Individual Question's Answer individually.
Session["Ans01"] = 1;
Session["Ans02"] = 2;
Session["Ans03"] = 3;
Session["Ans04"] = 1;
and retrieve value at end of question.
Regards
Alisha
-
13 Nisan 2012 Cuma 09:16
Hello,
Is this code placed between loop?
Ans += sdr["corAns"].ToString();
Session["Ans"] = Ans;