当前位置: 代码迷 >> ASP.NET >> 字符串格式不对解决办法
  详细解决方案

字符串格式不对解决办法

热度:2668   发布时间:2013-02-25 00:00:00.0
字符串格式不对
void Session_Start(object sender, EventArgs e) 
  {
  // 在新会话启动时运行的代码
  Application.Lock();
  Application["online"] = Convert.ToInt32(Application["online"]) + 1;
  Application["total"] = Convert.ToInt32(Application["total"]) + 1;
  Application.UnLock();
  }
就是那个红色的老是报错 说字符串格式不对 ,应该怎么写的啊,急哦

------解决方案--------------------------------------------------------
Application["total"]的值不是数字
  相关解决方案