当前位置:编程学习 > C#/ASP.NET >>

附上工程文件,请问一下treeview控件不能实现并给出以下提示是哪儿出错了?

工程文件: http://mail.qq.com/cgi-bin/ftnExs_download?k=70396163dc68d89e7c8ed6624439034e025b575b070f5553190e07525b140500555b4c5b520e044c005b5655045f0050500f58056229312c5d4a3106104a5e0f5a5c0d4d10584361&t=exs_ftn_download&code=49acb91a
(提取码 49acb91a)

分不多了,好像只有10分了,拜托,谢谢大家了。。。

谢谢大家关注,我是初学做B/S模式的开发,想先找到一个较大的例子通过后,再详细看书,但是现在出现了这个问题: 
按照MIS系统开发与应用(ASP.NET+SQL SERVER 2000版)给出的步骤做,已经可以连接数据库并登录,但是网页左边的树形选择去无法出现。 
已经将webcontrols控件放在了IIS主目录和虚拟目录下(因为不懂,为保险起见也放了一个),放的路径肯定没问题,已经搜过无数帖子了,但现在就出现以下提示: 

请问有人知道问题出在哪儿吗?谢谢了 


Server Error in '/MisPersonnel' Application. 
-------------------------------------------------------------------------------- 

Type of value has a mismatch with column type 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: Type of value has a mismatch with column type 

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[ArgumentException: Type of value has a mismatch with column type] 
  System.Data.Common.ObjectStorage.Set(Int32 recordNo, Object value) +955 
  System.Data.DataColumn.set_Item(Int32 record, Object value) +37 

[ArgumentException: Type of value has a mismatch with column typeCouldn't store <0> in TreeID Column.  Expected type is DataRow.] 
  System.Data.DataColumn.set_Item(Int32 record, Object value) +72 
  System.Data.DataRow.set_Item(DataColumn column, Object value) +194 
  System.Data.DataRow.set_Item(Int32 columnIndex, Object value) +25 
  SQLHelper.SystemTools.ConvertDataReaderToDataTable(SqlDataReader dataReader) +468 

[Exception: Type of value has a mismatch with column typeCouldn't store <0> in TreeID Column.  Expected type is DataRow.] 
  SQLHelper.SystemTools.ConvertDataReaderToDataTable(SqlDataReader dataReader) +635 
  MisPersonnel.Components.Tree.GetTrees(String sProName) in D:\ASP.NETMIS\MisPersonnel\Components\Tree.cs:81 
  MisPersonnel.Components.Tree.BindTree(TreeView treeView) in D:\ASP.NETMIS\MisPersonnel\Components\Tree.cs:19 
  MisPersonnel.DesktopModules.LeftTree.BindTreeData() in D:\ASP.NETMIS\MisPersonnel\DesktopModules\LeftTree.aspx.cs:35 
  MisPersonnel.DesktopModules.LeftTree.Page_Load(Object sender, EventArgs e) in D:\ASP.NETMIS\MisPersonnel\DesktopModules\LeftTree.aspx.cs:28 
  System.Web.UI.Control.OnLoad(EventArgs e) +98 
  System.Web.UI.Control.LoadRecursive() +71 
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4315 




-------------------------------------------------------------------------------- 
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,