button上templateField中单选按钮的值单击 [英] values of the radioButton in templateField on button Click

查看:81
本文介绍了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

推荐答案

请点击以下链接:
GridView控件内的单选按钮 [
Please follow the link:
RadioButtons inside a GridView control[^]


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆