- 分享
- 0
- 人气
- 0
- 主题
- 1
- 帖子
- 74
- UID
- 165533
- 积分
- 69
- 阅读权限
- 12
- 注册时间
- 2008-9-10
- 最后登录
- 2009-12-17
- 在线时间
- 80 小时
 
|
if (Session["Wrong"] != null)
session["Wrong"] = Convert.ToInt32(Session["Wrong"].ToString()) + 1;
else
Session["Wrong"] = 1;
if (Session["correct"] != null)
session["correct"] = Convert.ToInt32(Session["Wrong"].ToString()) + 1;
else
Session["correct"] = 1;
{
int Correct = Convert.ToInt32(Session["Correct"].ToString());
int total = Convert.ToInt32(Session["Wrong"].ToString()) + Convert.ToInt32(Session["Correct"].ToString());
double dbMark = 100 * correct / total;
Response.Write(" " + total.ToString() + " " + dbMark.ToString());}
我要这样set 才对呢~
我做了很久可以还是拿不到答案T。T |
|