您的位置:程序门 -> .net技术 -> c#



类型转换问题


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


类型转换问题
发表于:2007-03-30 10:23:05 楼主
activedate定义如下:
public   string   activedate
                {
                        get
                        {
            debug.assert(base.innerdatarow[ "activedate "]   !=   null   &&
                              base.innerdatarow[ "activedate "]   !=   dbnull.value   );
                                return   base.innerdatarow[ "activedate "].tostring();
                        }
                        set
                        {
              base.innerdatarow[ "activedate "]   =   value;
                        }
                }
执行下列语句是出异常:
activedate   =   "2007-3-21   22:42:47 ";
异常:
{ "input   string   was   not   in   a   correct   format.couldn 't   store   <2007-3-21   22:42:47>   in   activedate   column.     expected   type   is   int64. "}
请问该如何解决?其中 "2007-3-21   22:42:47 "是另一个模块传过来的。
发表于:2007-03-30 10:27:141楼 得分:0
up


快速检索

最新资讯
热门点击