Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/292.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/33.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# C GridView/RadioButton未触发事件。。。为什么?_C#_Asp.net_Gridview - Fatal编程技术网

C# C GridView/RadioButton未触发事件。。。为什么?

C# C GridView/RadioButton未触发事件。。。为什么?,c#,asp.net,gridview,C#,Asp.net,Gridview,我有一个gridview,其中包含数据行和一组可选择的单选按钮。但是,当选中时,事件将不会为无线电下拉菜单触发。。。。为什么? <ItemTemplate> <asp:RadioButton ID="rdoV" runat="server" Checked='<%# Bind("VOID") %>' AutoPostBack="True"

我有一个gridview,其中包含数据行和一组可选择的单选按钮。但是,当选中时,事件将不会为无线电下拉菜单触发。。。。为什么?

                             <ItemTemplate>
                                 <asp:RadioButton ID="rdoV"
 runat="server" Checked='<%#
 Bind("VOID") %>' AutoPostBack="True" 
         oncheckedchanged="RadioButton1_CheckedChanged"
                                     GroupName='<%# BIND("WallstreetID")
 %>' />
                             </ItemTemplate>
        protected void RadioButton1_CheckedChanged(object sender, EventArgs e)
        {

        }

确保在未检查IsPostBack的情况下,不会在Page_Load事件中重新绑定网格。这可能会清除网格内部的其他事件。

确保在未检查IsPostBack的情况下,不会在页面加载事件中重新绑定网格。这可能会消除网格内部的其他事件