📄 finalgridviewcat.aspx
字号:
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="FinalGridViewCat.aspx.vb" Inherits="FinalGridViewCat" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ASP.NET 2.0 Data Sources and Databound Controls Test Site</title>
</head>
<body>
<form id="frmDefault" runat="server">
<div>
<table id="tblMain" bgcolor="gainsboro" border="0" cellpadding="0" cellspacing="0"
style="width: 100%; height: 100%">
<tr>
<td style="height: 30px">
<strong><span style="font-family: Arial">Test Web Site for ADO.NET 2.0 Data Sources
and Bound Controls</span></strong></td>
</tr>
<tr>
<td style="height: 450px">
<span style="font-family: Arial">
<asp:SqlDataSource ID="dsCategories" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
SelectCommand="SELECT [CategoryID], [CategoryName], [Description], [Picture] FROM [Categories] ORDER BY [CategoryID]">
</asp:SqlDataSource>
<asp:GridView ID="gvCategories" runat="server" AutoGenerateColumns="False" DataKeyNames="CategoryID"
DataSourceID="dsCategories" Font-Names="Verdana" Font-Size="10pt">
<Columns>
<asp:CommandField ShowSelectButton="True" />
<asp:BoundField DataField="CategoryID" HeaderText="CategoryID" InsertVisible="False"
ReadOnly="True" SortExpression="CategoryID" />
<asp:BoundField DataField="CategoryName" HeaderText="CategoryName" SortExpression="CategoryName" />
<asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
<asp:ImageField DataImageUrlField="CategoryID" DataImageUrlFormatString="Images/CATID{0}.gif"
NullDisplayText="No Image to Display" DataAlternateTextField="CategoryName" DataAlternateTextFormatString="Picture of {0}" HeaderText="Picture">
</asp:ImageField>
</Columns>
</asp:GridView>
</span>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -