很明显,(string)Eval("p_countions")转换错误。
Eval("p_countions")的结果是System.DBNull,而System.DBNull不能执行强制类型转换的,如果只是看结果,用Eval("p_countions").ToString()却不会报错,它返回空。
当前你可以先判断再转换了
很明显,(string)Eval("p_countions")转换错误。
Eval("p_countions")的结果是System.DBNull,而System.DBNull不能执行强制类型转换的,如果只是看结果,用Eval("p_countions").ToString()却不会报错,它返回空。
当前你可以先判断再转换了
Copyright © 2024 妖气游戏网 www.17u1u.com All Rights Reserved