大马资讯论坛 - 马来西亚中文资讯平台

 找回密码
 注册
搜索
打印 上一主题 下一主题

[教学] Cannot serialize the DataTable. DataTable name is not set.

[复制链接]
跳转到指定楼层
1#
发表于 2010-4-15 14:06:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Web Service - Return Datatable
  1. Cannot serialize the DataTable. DataTable name is not set.
复制代码
1. Give a name to datatable.
1. 给个datatable名字

2. Add your data column name.
2. 添加列名

table = new DataTable("MyTable");
table.Columns.Add("Id");

手机版|大马资讯论坛  

GMT+8, 2024-4-28 03:17 , Processed in 0.052248 second(s), 23 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表