在信息发送页面,select 所需要的数据,存储在dataset中,放入session,
在接收页中,我要调用session(object)中单个的值.我用以下方法,希望可以实现.但出现错误.因为刚接触.net不久,所以无法找到,究竟错在哪里,望指教!
objDataAdapter.SelectCommand = objCommand
objDataAdapter.Fill(objDataSet)
objConn.Close()
Session("info") = objDataSet
infor = CType(Session.Item("flag"), Type)
Response.Write(infor.FullName)
错误是:Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
谢谢!
在接收页中,我要调用session(object)中单个的值.我用以下方法,希望可以实现.但出现错误.因为刚接触.net不久,所以无法找到,究竟错在哪里,望指教!
objDataAdapter.SelectCommand = objCommand
objDataAdapter.Fill(objDataSet)
objConn.Close()
Session("info") = objDataSet
infor = CType(Session.Item("flag"), Type)
Response.Write(infor.FullName)
错误是:Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
谢谢!
浙公网安备 33010602011771号