<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!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></title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="height: 284px">
    
        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="12pt" 
            Text="Label"></asp:Label>
        <br />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:universityConnectionString %>" 
            SelectCommand="SELECT * FROM [student]"></asp:SqlDataSource>
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1" 
            style="top: 110px; left: 10px; position: absolute; height: 138px; width: 249px">
            <Columns>
                <asp:BoundField DataField="fname" HeaderText="fname" SortExpression="fname" />
                <asp:BoundField DataField="lname" HeaderText="lname" SortExpression="lname" />
                <asp:BoundField DataField="average" HeaderText="average" 
                    SortExpression="average" />
                <asp:BoundField DataField="stno" HeaderText="stno" SortExpression="stno" />
                <asp:CheckBoxField DataField="sex" HeaderText="sex" SortExpression="sex" />
                <asp:BoundField DataField="course" HeaderText="course" 
                    SortExpression="course" />
            </Columns>
        </asp:GridView>
    
    </div>
    </form>
</body>
</html>
