ASP+中执行简单的Select查询,并返回数据表到DataGrid源程序

作者:袖梨 2022-06-30
------------------c#源程序----------------
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SQL" %>



Simple Select to a DataGrid Control


:DataGrid id="MyDataGrid" runat="server"

BackColor="#ccccff"
BorderColor="black"
ShowFooter="false"
CellPadding=3
CellSpacing="0"
Font-Name="Verdana"
Font-Size="8pt"
HeaderStyle-BackColor="#aaaadd"
MaintainState="false"
/>


------------#VB源程序---------------
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SQL" %>