Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何使用gridview标题中的两个单选按钮选择同一列中具有相同单选按钮的所有对应记录?_C#_Asp.net_Gridview_Radio Button - Fatal编程技术网

C# 如何使用gridview标题中的两个单选按钮选择同一列中具有相同单选按钮的所有对应记录?

C# 如何使用gridview标题中的两个单选按钮选择同一列中具有相同单选按钮的所有对应记录?,c#,asp.net,gridview,radio-button,C#,Asp.net,Gridview,Radio Button,如何使用网格视图标题中的两个单选按钮选择同一列中具有相同单选按钮的所有对应记录 这是我的密码: <asp:TemplateField HeaderText="Page"> <HeaderTemplate> <asp:RadioButton ID="RadioButton1" runat="server" Text="Select All Colour" /> <asp:RadioButton ID="Rad

如何使用网格视图标题中的两个单选按钮选择同一列中具有相同单选按钮的所有对应记录

这是我的密码:

 <asp:TemplateField HeaderText="Page">
     <HeaderTemplate>
         <asp:RadioButton ID="RadioButton1" runat="server" Text="Select All Colour" />
         <asp:RadioButton ID="RadioButton2" runat="server" Text="Select All B/W" />                                
     </HeaderTemplate>
     <ItemTemplate>                                
         <asp:RadioButton ID="RadioButton3" runat="server" Text="Colour" />
         <asp:RadioButton ID="RadioButton4" runat="server" Text="B/W" />
     </ItemTemplate>
 </asp:TemplateField>


您需要代码隐藏文件中的帮助吗?是的,Praveen先生。当我在标题中选择一个单选按钮时,也会选择相同单选按钮的itemtemplet。