ASP.NET radio button change

后端 未结 5 708
孤独总比滥情好
孤独总比滥情好 2021-01-04 02:50

I am trying to figure out why this code doesn\'t fire the radio button change event.

here\'s the ASP page code for 2 radio buttons

  

        
5条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-04 03:12

    You should set the AutoPostBack = True and in the code behind the handles in your function.

    Example:

    Protected Sub RadioButton1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs)           Handles RadioButton1.CheckedChanged
    

提交回复
热议问题