GridView.EmptyDataRowStyle Property
来源:互联网 发布:李涛疯狂淘宝骗局 编辑:程序博客网 时间:2024/05/02 04:34
原帖地址:http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.emptydatarowstyle.aspx
<%@ Page language="C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>GridView EmptyDataTemplate Example</title></head><body> <form id="form1" runat="server"> <h3>GridView EmptyDataTemplate Example</h3> <asp:gridview id="CustomersGridView" datasourceid="CustomersSqlDataSource" autogeneratecolumns="true" runat="server"> <emptydatarowstyle backcolor="LightBlue" forecolor="Red"/> <emptydatatemplate> <asp:image id="NoDataImage" imageurl="~/images/Image.jpg" alternatetext="No Image" runat="server"/> No Data Found. </emptydatatemplate> </asp:gridview> <!-- This example uses Microsoft SQL Server and connects --> <!-- to the Northwind sample database. Use an ASP.NET --> <!-- expression to retrieve the connection string value --> <!-- from the Web.config file. The following query --> <!-- returns an empty data source to demonstrate the --> <!-- empty row. --> <asp:sqldatasource id="CustomersSqlDataSource" selectcommand="Select [CustomerID], [CompanyName], [Address], [City], [PostalCode], [Country] From [Customers] Where CustomerID='NoID'" connectionstring="<%$ ConnectionStrings:NorthWindConnectionString%>" runat="server"> </asp:sqldatasource> </form> </body></html>
- GridView.EmptyDataRowStyle Property
- property
- property
- Property
- @property
- @property
- property
- @property(..,..)
- property
- @property
- property
- property
- @property
- property()
- @property
- property
- @property
- property
- 架构
- Shell脚本中判断文件,目录是否存在或者具有权限
- C#操作ini文件
- 装饰者模式
- 葵花宝典
- GridView.EmptyDataRowStyle Property
- C#构造蜘蛛爬虫程序
- 【C++】第三章:变量和数据
- 牛
- 【热门主题: 海贼王动漫高清壁纸图集】
- csdn
- Linux 高精度timer解析
- Kernel中rfcomm层的初始化
- LA 3095 扫描法 线性