我正在创建动态单选按钮列表
Dim rdbQuestion As New RadioButtonList
并且有动态ID为
rdbQuestion.ID = "Question_" & row("Id").ToString
并且当页面呈现单选按钮列表的 id 更改为这样的
AssessmentPerforma_Question_1, AssessmentPerforma_Question_2, AssessmentPerforma_Question_3..... AssessmentPerforma_Question_n
如何阻止 asp.net 更改 ID 以执行这样的操作
Sub btnSave_click(ByVal sender As Object, ByVal e As EventArgs)
Dim rbl As RadioButtonList = DirectCast(Page.FindControl("Question_1"), RadioButtonList)
Response.Write(rbl.SelectedValue)
End Sub