Here you go, sapator. Thanks!
In a sub, called from page load (including the msgbox check, which fires):
Code:
If Page.IsPostBack = True Then
MsgBox("Postback")
End If
If Page.IsPostBack = False Then
Me.RadioButtonList1.Items.Clear()
Me.RadioButtonList1.Items.Add("Placera här")
End If
and then further down, inside a loop:
Code:
If Me.IsPostBack = False Then
Dim rbitem As New ListItem
rbitem.Enabled = False
rbitem.Text = Left(stRw.Item(3), 45) & "..."
Me.RadioButtonList1.Items.Add(rbitem)
Me.RadioButtonList1.Items.Add("Placera här")
End If
and the aspx:
Code:
<asp:RadioButtonList ID="RadioButtonList1" runat="server" ForeColor="Black" Font-Size="0.9em" AutoPostBack="True" ViewStateMode="Enabled">
</asp:RadioButtonList>
so the postback is true, and the populating doesn´t happen, but still the first item gets selected.
Fuga.