2012年3月30日
摘要: 1.前言 当对 GridView 控件进行数据绑定时,如果绑定的记录为空,网页上就不显示 GridView,造成页面部分空白,页面布局结构也受影响。下面讨论的方法可以让 GridView 在没有数据记录的时候显示表的字段结构和显示提示信息。 2.数据 为了让 GridView 显示数据,在数据库中建立表 temple,其字段如下: temple 表示庙宇,它的字段有: temple_id int temple_name varchar(50) location varchar(50) build_date datetime temple 的数据为:... 阅读全文
posted @ 2012-03-30 17:23 QZB.NET 阅读(293) 评论(0) 推荐(0) 编辑