如何将按钮连接到选定的GridView?

时间:2019-02-13 11:48:07

标签: c# asp.net

我想在列表中选择一个服务器并将查询发送到该服务器,我如何将选择连接到按钮?

enter image description here

<asp:GridView ID="GridView1" runat="server" AutoGenerateSelectButton="True" ColumnName="test" GridLines="Horizontal" Font-Size="Medium" HorizontalAlign="Left" Width="408px" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4">
            <FooterStyle BackColor="White" ForeColor="#333333" />
            <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" BorderStyle="Solid" HorizontalAlign="Center" VerticalAlign="Middle" />
            <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F7F7F7" />
            <SortedAscendingHeaderStyle BackColor="#487575" />
            <SortedDescendingCellStyle BackColor="#E5E5E5" />
            <SortedDescendingHeaderStyle BackColor="#275353" />
            <RowStyle HorizontalAlign="Center"></RowStyle>


        </asp:GridView>

0 个答案:

没有答案