产品使用及交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

在自定义模型引用 datatable 后报错,请帮忙 [复制链接]

1#
如题,在数据列表区中输入   <%
DataTable dt=Get_Data("select * from zdyform_03");
DataRow dr;
for(int i=0;i<dt.Rows.Count;i++)
{
  dr=dt.Rows;%><div class="companyshow"><%=dr["pa_gallerycontent"].ToString()%></div>
<%
}
%>
前台报错,
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'DataTable' could not be found (are you missing a using directive or an assembly reference?)

请问是什么原因啊?谢谢
分享 转发
TOP
2#

老大,我是用的2.1,有办法解决吗?
TOP
3#

但是2.1的方法 无法 实现“如题,其实我想 实现的目的就是:把数据列表区中的数据分成3列,当数据是3的整数倍时,加上一些换行的标签。”   这是我前几天提出的需求,无法实现这个,或者 在2.1下 如何实现呢?
TOP
4#

老大,帮帮忙
TOP
5#

ding!!!!!!!!!!!!!!!!!!!!!!!
TOP
发新话题 回复该主题