sub page_load(sender as object,e as eventargs)
dim ds as new dataset()
ds.readxml(server.mappath("data.xml"))
dim mytable as datatable = ds.tables("aaaa")
dim i as integer
for i = 0 to mytable.columns.count - 1
response.write(mytable.columns(i).caption)
next
end sub
出现这个问题
Object reference not set to an instance of an objectdata.xml
<person>
测试
</person>帮忙啊,忙活了一上午没弄明白
dim ds as new dataset()
ds.readxml(server.mappath("data.xml"))
dim mytable as datatable = ds.tables("aaaa")
dim i as integer
for i = 0 to mytable.columns.count - 1
response.write(mytable.columns(i).caption)
next
end sub
出现这个问题
Object reference not set to an instance of an objectdata.xml
<person>
测试
</person>帮忙啊,忙活了一上午没弄明白
解决方案 »
- 筛选敏感字
- 如何保证视频或动画不会被客户端下载
- 求助:asp.net发布后,文本框变慢
- 日期控件的弹出
- asp.net导出PDF文件和Excel文件
- Visual Studio 2005 Team Suite的简体中文正式版出了没有啊
- FreeTextBox ????????请指教!!
- 怎么为datagrid控件的delete命令进行确认,例如弹出个confirm之类的
- 从数据库取该记录的编号以后,怎么判断编号存在还是不存在,即不是记录头,也不是记录尾
- 困扰很久的问题,关于DateTime类型的Property
- 同一个解决方案中不同项目的bin的引用问题?
- 求高手帮忙﹗DataView导出Excel文檔时出错。
错误是没有将对象实例化
<root>
<table>
<person>
测试
</person>
</table>
</root>
问题解决