我在 UserControl1.ascx中 用Catch保存了一个
SortedList对象 即 Catch["CatchName"] = objSortedList;然后我在WebForm1.aspx中 (此页包含刚才创建额UserControl)如下取出此Catch保存的对象
SortedList objSortedList;
objSortedList = Catch["CatchName"]然后我 Response.Write(ojbSortedList.Count.ToString());提示 未将对象引用设置到对象实例大家帮帮忙,看这是怎么回事
半天了也没解决,郁闷中!
谢谢!
SortedList对象 即 Catch["CatchName"] = objSortedList;然后我在WebForm1.aspx中 (此页包含刚才创建额UserControl)如下取出此Catch保存的对象
SortedList objSortedList;
objSortedList = Catch["CatchName"]然后我 Response.Write(ojbSortedList.Count.ToString());提示 未将对象引用设置到对象实例大家帮帮忙,看这是怎么回事
半天了也没解决,郁闷中!
谢谢!
为空,为空的东西再作Response.Write(ojbSortedList.Count.ToString());
就报你说的那个东西了。
或者objSortedList未取得值