Hi kelsen1989,
Please refer below sample.
HTML
<p>
4. If stuck by a needle, one should:
<asp:CustomValidator ID="CustomValidator4" ErrorMessage="*" ForeColor="Red" ClientValidationFunction="ValidatechkQ4"
runat="server" />
<asp:CheckBoxList ID="ChkQ4" runat="server" AutoPostBack="True">
<asp:ListItem Value="a">Rinse the site with water and not tell anyone</asp:ListItem>
<asp:ListItem Value="b">Wash site with soap and water and immediately report the incident to the facility supervisor</asp:ListItem>
<asp:ListItem Value="c">Squeeze the needle stick area until the site bleeds</asp:ListItem>
<asp:ListItem Value="d">Go directly to the facility lab to have laboratory tests completed</asp:ListItem>
</asp:CheckBoxList>
</p>
Code
C#
protected void Page_Load(object sender, EventArgs e)
{
List<ListItem> checkBoxItems = new List<ListItem>();
foreach (ListItem item in ChkQ4.Items)
{
checkBoxItems.Add(item);
}
ChkQ4.Items.Clear();
ChkQ4.DataSource = checkBoxItems.OrderBy(x => Guid.NewGuid()).ToList();
ChkQ4.DataBind();
}
VB.Net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim checkBoxItems As List(Of ListItem) = New List(Of ListItem)()
For Each item As ListItem In ChkQ4.Items
checkBoxItems.Add(item)
Next
ChkQ4.Items.Clear()
ChkQ4.DataSource = checkBoxItems.OrderBy(Function(x) Guid.NewGuid()).ToList()
ChkQ4.DataBind()
End Sub
Screenshot