este es el codigo
Dim miForma As Control = Page.FindControl("form1")
Dim ctl As Control
For Each ctl In miForma.Controls
If ctl.GetType().ToString().Equals("System.Web.UI.Web Controls.TextBox") Then
CType(ctl, TextBox).Text = ""
End If
If ctl.GetType().ToString().Equals("System.Web.UI.Web Controls.DropDownList") Then
CType(ctl, Dropdownlist).selectedindex = -1
CType(ctl, DropDownList).SelectedItem.Value = ""
CType(ctl, DropDownList).SelectedItem.Text = ""
End If
'************** este es el problema ya que no se borra e investigado las propiedades para borrar un radiobutton list y las tengo todas habilitadas y aun asi no me funcionan, alguien sabe la forma correcta o que estoy haciendo mal
'**************
If ctl.GetType().ToString().Equals("System.Web.UI.Web Controls.RadioButtonList") Then
CType(ctl, RadioButtonList).selectedindex = -1
CType(ctl, RadioButtonList).ClearSelection()
CType(ctl, RadioButtonList).SelectedItem.Value = ""
CType(ctl, RadioButtonList).SelectedItem.Text = ""
End If
Next ctl
gracias..
