button上templateField中单选按钮的值单击

button上templateField中单选按钮的值单击

本文介绍了button上templateField中单选按钮的值单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<asp:gridview ID="gridview1"  runat="server" AutoGenerateColumns="false">
    <Columns>
        <asp:BoundField DataField="Name"  HeaderText="Name"/>
        <asp:TemplateField HeaderText="Attendance">
        <ItemTemplate >
        <asp:RadioButton ID="rb1" runat="server" Text="P"  GroupName="1" />
        <asp:RadioButton ID="RadioButton1" Text="A" runat="server"  GroupName="1"/>
        <asp:RadioButton ID="RadioButton2" Text="L" runat="server"  GroupName="1"/>
        <asp:RadioButton ID="RadioButton3" Text="H" runat="server" GroupName="1" />
        </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:gridview>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Submit" />



-------------------------

how i can get the value of the gridview on button click

推荐答案


这篇关于button上templateField中单选按钮的值单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 04:58