User-944424728 posted
Hello, the code below is postback if it's not a radiobuttonlist. I added "Or
Not TypeOf ctrl
Is CheckBoxList" but it's not working like radiobuttonlist.
Can you advise what is missing? thank you. "If
Not TypeOf ctrl
Is RadioButtonList Or
Not TypeOf ctrl
Is CheckBoxList" .
--
below postback is working if not radiobuttonlist
Protected
Sub Page_PreRender(ByVal sender
As Object,
ByVal e As System.EventArgs)
Handles Me.PreRender
If Page.IsPostBack
Then
Dim ctrl As Control = GetPostbackControl()
If Not
TypeOf ctrl Is RadioButtonList
Then
GetPostbackControl.Focus()
End If
End
If