End Try
End Sub
End Class
包含Gridview控件的页面中对Gridview的声明
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource_User" ForeColor="#333333" Width="700px" DataKeyNames="username" EmptyDataText="没有用户信息" Font-Size="Small" PageSize="8" BorderStyle="Dotted" BorderWidth="1px" >
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="USERNAME" HeaderText="用户名" SortExpression="USERNAME" ReadOnly="True">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="DUTY" HeaderText="单位" SortExpression="DUTY">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="NOTES" HeaderText="姓名" SortExpression="NOTES">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="PASSWORD" HeaderText="密码" SortExpression="PASSWORD">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:ImageField DataImageUrlField="username" DataImageUrlFormatString="getimage.aspx?username={0}"
HeaderText="签名" ReadOnly="True">
&n
| 对此文章发表了评论 |

