首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

字符串格式不对解决办法

2012-03-09 
字符串格式不对void Session_Start(object sender, EventArgs e){// 在新会话启动时运行的代码Application

字符串格式不对
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"]的值不是数字

热点排行