derText="成绩" SortExpression="Score" />Р </Columns>Р <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />Р <RowStyle BackColor="#E3EAEB" />Р <EditRowStyle BackColor="#7C6F57" />Р <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />Р <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />Р <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />Р <AlternatingRowStyle BackColor="White" />Р</asp:GridView>Р//定义数据源SqlDataSource1,并建立数据源内容。Р <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:online_ExamConnectionString %>"Р mand="SELECT * FROM [Score] WHERE ([UserID] = @UserID)">Р//在C#里面的代码,当单击查询按钮时使上面的GridView控件显示在页面上Рprotected void Button1_Click(object sender, EventArgs e)Р {